ref whoref armorid;get a reference for NPC armor in upper body, lower body,;hand, foot slotset armorid to who.GetEquippedObject 20if armorid.GetIsID "FormIDGoesHere" ;do somethingendif
From what I understand the GetIsID function should return a 1 if the reference belongs to the base object that the FormID represents. When the script runs in game however, it simply stops at the if statement (I'm assuming I'm using the GetIsID function incorrectly, but it looks valid based on the documentation on the construction set wiki). Can anyone please offer an alternative method or perhaps let me know what I'm doing wrong here? Thanks!