en:api:unit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:api:unit [2016/12/15 17:34]
Alexander Yakovlev created
en:api:unit [2021/01/24 10:42] (current)
Line 7: Line 7:
  
 ==== order ==== ==== order ====
-This property is used to sort the descriptions when examining the room. By default it's ''0''. You can set to any number.+This property is used to sort the descriptions when examining the room. By defaultit's ''0''. You can set to any number.
  
 ==== visible ==== ==== visible ====
-This property indicates whether the unit is visible when viewed from the room. By default it's ''true'' - the unit's description in printed on ext.+This property indicates whether the unit is visible when viewed from the room. By defaultit's ''true'' - the unit's description in printed on ext.
  
 ==== takeable ==== ==== takeable ====
-This property indicates whether the unit can be taken by player. By default it's ''false''.+This property indicates whether the unit can be taken by player. By defaultit's ''false''.
  
 If it's ''true'', then when this unit's link is clicked *Salet* would not call the ''[[#act]]'' function. It would call the ''[[#take]]'' one instead and move this unit to the [[en:api:character|player's inventory.]] If it's ''true'', then when this unit's link is clicked *Salet* would not call the ''[[#act]]'' function. It would call the ''[[#take]]'' one instead and move this unit to the [[en:api:character|player's inventory.]]
Line 26: Line 26:
  
 ==== act ==== ==== act ====
-A reaction when when this unit's link is clicked, if the unit is not portable (''takeable = false'').+A reaction when this unit's link is clicked, if the unit is not portable (''takeable = false'').
  
 Can be a function that returns a string, or a string. Can be a function that returns a string, or a string.
  • en/api/unit.1481816056.txt.gz
  • Last modified: 2021/01/24 10:41
  • (external edit)