User Tools

Site Tools


script:module:defs

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:module:defs [2019-11-17 17:56]
skyjake [Order]
script:module:defs [2020-12-06 21:25]
skyjake
Line 60: Line 60:
  
  
-The ''​Defs.SN_*''​ constants are used as indices in the ''​states''​ array of thing definitions.+The ''​Defs.SN_*''​ constants are used as indices in the ''​states''​ array of [[ded:thing|Thing ​definitions]].
  
-The ''​Defs.SDN_*''​ constants are used as indices in the ''​sounds''​ array of thing definitions.+The ''​Defs.SDN_*''​ constants are used as indices in the ''​sounds''​ array of [[ded:thing|Thing ​definitions]].
  
  
  
 +===== Functions =====
 +
 +The following return the internal index number for a given ID:
 +
 +#​@Identifier_HTML~getSoundNum~@#​ ( #​@Arg_HTML~Text,​name~@#​ )
 +
 +#​@Identifier_HTML~getStateNum~@#​ ( #​@Arg_HTML~Text,​stateId~@#​ )
 +
 +#​@Identifier_HTML~getThingNum~@#​ ( #​@Arg_HTML~Text,​thingId~@#​ )
  
script/module/defs.txt ยท Last modified: 2020-12-06 21:25 by skyjake