Difference between revisions of "GetIsID"

252 bytes removed ,  19:52, 20 February 2021
disassembly
imported>DavidJCobb
m (Contains old script)
imported>DavidJCobb
(disassembly)
 
Line 1: Line 1:
'''Syntax:'''
This function takes a form as its parameter, and returns 1 if the run-on reference's base form is the same form, or 0 otherwise. If the run-on reference is a leveled actor, then this function compares its parameter to the ActorBase that was selected for spawn, rather than to the LeveledActor form.
  GetIsID ObjectID


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.  
If the parameter isn't a valid base form (the Creation Kit lets you specify several forms that aren't), then this function exits early, returning 0.
 
'''Example:'''
  Begin Onequip Player              ; One script for a whole set of armor
    if GetIsID mycuirass == 1
      message "Cuirass equipped"
    elseif GetIsID myboots == 1
      message "Boots equipped"
    elseif GetIsID mygauntlets == 1
      message "Gauntlets equipped"
    elseif GetIsID mygreaves == 1
      message "Greaves equipped"   
    elseif GetIsID myhelmet == 1
      message "Helmet equipped"
    else
      message "Shield equipped"
    endif
  end


==Papyrus Version==
==Papyrus Version==
Line 25: Line 7:


[[Category:Console Commands]]
[[Category:Console Commands]]
[[Category:Condition Functions]]
[[Category:Condition Functions]]
[[Category:Needs Skyrim Update]]
Anonymous user