ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Referencing (maps)"

From ModEnc
Jump to: navigation, search
(Created (as a blob for inclusion on TS-YR Ev/Ac pages))
 
m (Reworded to make sense)
Line 2: Line 2:
  
 
:As you probably noticed, some of the Parameter descriptions in this table end with "#". The reason for that is:<br />
 
:As you probably noticed, some of the Parameter descriptions in this table end with "#". The reason for that is:<br />
The parameters referring to objects that are restricted to having only hexadecimal identifiers (Tags, Triggers, Events, TeamTypes) refer to them by their ID, but the parameters referring to other objects (those which can have non-numeric IDs), refer to them by their index in the corresponding ObjectList. For example, a parameter requiring "TeamType ID" should get the TeamType's ID (eg, {{Tt|12AC14FF}}), but a parameter asking for an "Infantry#" should get that particular infantry's index in the InfantryTypes list, not its ID. <br />
+
:Some parameters take their values to be indexes of objects, others assume they are the identifiers of those objects.<br />
For convenience, if the parameter's description in the table ends with a "#" symbol, you should use the object's index, otherwise you should use its ID.
+
:For convenience, if the parameter's description in the table ends with a "#" symbol, you should use the object's index in its appropriate list, otherwise you should use its ID.
 
 
{{NeedTesting}}
 
This poses the question, what happens if you create a TeamType that has a non-hexadecimal identifier and invoke it through such an Event or Action?
 

Revision as of 13:52, 14 September 2006

Referencing items
As you probably noticed, some of the Parameter descriptions in this table end with "#". The reason for that is:
Some parameters take their values to be indexes of objects, others assume they are the identifiers of those objects.
For convenience, if the parameter's description in the table ends with a "#" symbol, you should use the object's index in its appropriate list, otherwise you should use its ID.