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 (Maps/Referencing moved to Referencing (maps): Moving.)
 
(3 intermediate revisions by 2 users not shown)
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.
 
+
::Also note: '''All''' entries in column P7 are expected to be literal, so you have to convert all the numbers into letters like this:
{{NeedTesting}}
+
:: 0 is "A", 1 is "B", 25 is "Z", 26 is "AA", just like the columnm numbering in your favourite spreadsheet program.
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?
+
[[Category:Map_Information]]

Latest revision as of 11:26, 18 June 2008

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.
Also note: All entries in column P7 are expected to be literal, so you have to convert all the numbers into letters like this:
0 is "A", 1 is "B", 25 is "Z", 26 is "AA", just like the columnm numbering in your favourite spreadsheet program.