Difference between revisions of "GetIsID"
Added example
imported>Maturin |
imported>JOG (Added example) |
||
Line 2: | Line 2: | ||
GetIsID CompareActorID | GetIsID CompareActorID | ||
Returns 1 if the actor is CompareActorID. | |||
'''Example:''' | |||
Begin Onequip Player ; One script for a whole set of armor | |||
if GetIsID mycuirass | |||
message "Cuirass equipped" | |||
elseif GetIsID myboots | |||
message "Boots equipped" | |||
elseif GetIsID mygauntlets | |||
message "Gauntlets equipped" | |||
elseif GetIsID mygreaves | |||
message "Greaves equipped" | |||
elseif GetIsID myhelmet | |||
message "Helmet equipped" | |||
else | |||
message "Shield equipped" | |||
endif | |||
end | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Actor State Functions]] | [[Category: Actor State Functions]] | ||
[[Category: Condition Functions]] | [[Category: Condition Functions]] |