Mattiewagg Posted August 9, 2014 Posted August 9, 2014 (edited) Ignore this. Edited August 9, 2014 by Matthiaswagg
lofgren Posted August 9, 2014 Posted August 9, 2014 No, that's wrong. The property is a property of the MyRef. The script determines which properties MyRef has, but when you type MyREF.PropertyA, you are looking up MyREF and selecting its property A. That's why you fill properties in the object reference, not in the script.
Mattiewagg Posted August 9, 2014 Posted August 9, 2014 On 8/9/2014 at 6:49 PM, lofgren said: No, that's wrong. The property is a property of the MyRef. The script determines which properties MyRef has, but when you type MyREF.PropertyA, you are looking up MyREF and selecting its property A. That's why you fill properties in the object reference, not in the script. Alright. Thank you for clarifying.
raboni Posted August 10, 2014 Author Posted August 10, 2014 On 8/9/2014 at 6:18 PM, IsharaMeradin said: Click the properties button to bring up the properties window. When you select the property the Creation Kit will show a drop down with all the objects that have the script assigned. Select the one you wish to use for that particular property.i feel so stupid that i didn't check that... it works now, thank you for the help. Reveal hidden contents here is the part of the code i made (that works) if anyone wants to have a look.RABSWeapRackTrigScript Property WeaponRackScriptL11 auto Bool Property TriggeredIronSword auto hidden ObjectReference Property ExtraEquipmentChestIron auto event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) if akBaseItem.HasKeyword(WeapMaterialIron) if akBaseItem.HasKeyword(WeapTypeSword) if !WeaponRackScriptL11.hasBeenTriggered && !TriggeredIronSword WeapRackIronSword.Activate(game.GetPlayer()) debug.notification("Item Sorted on Rack") TriggeredIronSword = true else RemoveItem(akBaseItem,aiItemCount,true,ExtraEquipmentChestIron) debug.notification("Item Sorted in Chest") endif endif endif endevent
Recommended Posts