Skip to content

Latest commit

 

History

History
282 lines (158 loc) · 7.22 KB

constants.md

File metadata and controls

282 lines (158 loc) · 7.22 KB

Lionhead Challenge Language Documentation

Back to index.

10 Constants

When you're doing things like playing animations, setting or getting the states of objects, both locally and globally, to abbreviate these unwieldy names, making your scripts more readable.

See also:

These let you change constants in certain ways.

  1. constant from constant to constant
  2. constant expression

These let you get a constant from the game.

  1. get text id from strong
  2. state of object
  3. get object desired building
  4. get hand state
  5. get object type
  6. get object sub type
  7. get object disciple type
  8. get player expression last spell cast
  9. get object current action
  10. get last gesture
  11. get last spell gesture
  12. get key for interface action constant
  13. get object relationship to object
  14. get platoon object type
  15. get platoon object plan status
  16. get object death reason
  17. get fire archer type for tribe TRIBE_TYPE
  18. get object navigation state
  19. get last toolbar button clicked
  20. get town object method of last conversion
  21. get town stauts
  22. get last town player expression method of last conversion
  23. get last settlement player expression method of last conversion

get a random constant is one of the ones between the two enum values you pass in.

Converts an expression.

gets the text id for a string name in the text data base.

get text id from "HELP_TEXT_BLAH"

Returns the constants.

state of LostBrother

10.2.3 get object desired building

Gets the building type that the town most wants to build

MyBuilding = variable get MyTown desired building

Gets the hand state.

get hand state

gets the object script type

get RandomThing type

Gets the object sub type

get Animal sub type

10.2.7 get object disciple type

Gets the object disciple type of a villager

get MyVillager disciple type

gets the the player last cast spell type

get player 1 last spell cast

10.2.9 get object current action

gets the creatures current action

get MyCreature current action

gets the last gesture type the player did

get last gesture

gets the last gesture type the player did to cast a spell

get last spell gesture

get key for interface actions (KB_UP for example for move)

get key for interface action BINDABLE_ACTION_TYPE_MOVE

gets the relationship of one object to another, based on their players (see RELATIONSHIP in RelationshipEnum.h)

MyRelationship = get GreekTown relationship to NorseTown

returns the type of the platoon

MyPlatoonType = get platoon MyPlatoon type

returns the plan status of the platoon

MyPlatoonPlanStatus = get platoon MyPlatoon plan status 

10.2.16 get object death reason

returns the method that killed the given object

MyLittleFellaDeathReason = get MyLittleFella death reason

gets the platoon type required for making fire archers in the given tribe

FiresOfHell = get fire archer type for tribe TRIBE_TYPE_GREEK

10.2.18 get object navigation state

After a call to 'move object is in. It returns one of: NAV_STATE_NONE - This entity is not currently navigating NAV_STATE_NAVIGATING - This entity is navigating NAV_STATE_SUCCEEDED - This entity has succeeded in navigating NAV_STATE_FAILING - This entity is in the process of failing NAV_STATE_FAILED - This entity has failed, and is not doing anything else.

get BlindMan navigation state

See also:

returns an enum from MENU_HIGHLIGHT_ITEM. This is the last button clicked indpendent of time since it was clicked.

LastButton = get last toolbar button clicked

See also:

10.2.20 get town object method of last conversion

returns the last method of conversion for the given town (see lastcaptureenum.h)

TownConversion = get town JapTown method of last conversion

gets the towns current status

TownConversion = variable get town [object](objects.md#8) tatus

10.2.22 get last town player expression method of last conversion

returns the method of conversion last used by the player

TownConversion = get last town player 0 method of last conversion

returns the method of conversion last used by the player

TownConversion = get last town player 0 method of last conversion