Difference between revisions of "GetIsReference"
Jump to navigation
Jump to search
imported>Vswe m (Added Search Terms) |
|||
(8 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
'''Syntax:''' | |||
GetIsReference ReferenceID | |||
'''Example:''' | |||
if GetIsReference NPC1 == 1 | |||
messagebox "I am NPC 1" | |||
elseif GetIsReference NPC2 == 1 | |||
messagebox "I am NPC 2" | |||
else | |||
messagebox "I am NPC 3" | |||
endif | |||
Returns 1 if the calling object is the specified reference. As opposed to [[GetIsID]], which checks against the base object ID as defined in the object window, this function takes a specific reference as a parameter. The reference must be persistent. | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: | [[Category:Functions (CS)]] | ||
[[Category: Functions (CS 1.0)]] | |||
[[Category: Condition Functions]] | [[Category: Condition Functions]] | ||
[[Category: Condition Functions (CS 1.0)]] | |||
[[Category: Inventory Functions]] | |||
[[Category: Inventory Functions (CS 1.0)]] | |||
<!-- Begin Search Terms | |||
Get | |||
Is | |||
Reference | |||
End Search Terms --> |
Latest revision as of 09:00, 20 June 2008
Syntax:
GetIsReference ReferenceID
Example:
if GetIsReference NPC1 == 1 messagebox "I am NPC 1" elseif GetIsReference NPC2 == 1 messagebox "I am NPC 2" else messagebox "I am NPC 3" endif
Returns 1 if the calling object is the specified reference. As opposed to GetIsID, which checks against the base object ID as defined in the object window, this function takes a specific reference as a parameter. The reference must be persistent.