Difference between revisions of "GetIsID"

486 bytes added ,  17:16, 9 September 2010
correcting
imported>Bnesmith
imported>DragoonWraith
(correcting)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
   GetIsID CompareActorID
   GetIsID ObjectID


Returns 1 if the actor is CompareActorID.  
Returns 1 if the calling object is a reference to ObjectID. The parameter for this function is a base object ID, as defined in the object window.  


'''Example:'''
'''Example:'''
   Begin Onequip Player              ; One script for a whole set of armor
   Begin Onequip Player              ; One script for a whole set of armor
     if GetIsID mycuirass == 1
     if GetIsID mycuirass
       message "Cuirass equipped"
       message "Cuirass equipped"
     elseif GetIsID myboots == 1
     elseif GetIsID myboots
       message "Boots equipped"
       message "Boots equipped"
     elseif GetIsID mygauntlets == 1
     elseif GetIsID mygauntlets
       message "Gauntlets equipped"
       message "Gauntlets equipped"
     elseif GetIsID mygreaves == 1
     elseif GetIsID mygreaves
       message "Greaves equipped"     
       message "Greaves equipped"     
     elseif GetIsID myhelmet == 1
     elseif GetIsID myhelmet
       message "Helmet equipped"
       message "Helmet equipped"
     else
     else
Line 20: Line 20:
     endif
     endif
   end
   end
== Note ==
* The script compiler assumes that <tt>player</tt> actually refers to <tt>playerRef</tt>. Therefore, <tt>GetIsID player</tt> will never return true. Use <tt>GetIsReference player</tt> instead.


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions (CS 1.0)]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions (CS 1.0)]]
<!-- Begin Search Terms
Get
Is
ID
End Search Terms -->