Korodic Posted September 24, 2012 Share Posted September 24, 2012 Hello forum people. I am looking to create a script that will allow me to basically get everything about the player. What does the player have equipped currently (shout/left hand/right hand), armor? I basically need this info (knowing what the player had equipped) to access those particular items later. I know I probably will need SKSE for this. I know these functions will also help accomplish this goal: [armor]http://www.creationkit.com/GetWornForm_-_Actorhttp://www.creationkit.com/Slot_Masks_-_Armor [What is the player using in their hand?]http://www.creationkit.com/GetEquippedItemType_-_Actor http://www.creationkit.com/GetEquippedShield_-_Actorhttp://www.creationkit.com/GetEquippedWeapon_-_Actorhttp://www.creationkit.com/GetEquippedSpell_-_Actor [What shout?]http://www.creationkit.com/GetEquippedShout_-_Actor scriptname GetPlayerEquips extends Actor Event OnUpdate() ;Get the armor if (Game.GetPlayer().GetEquippedItemType(0) == 0) ; 0 is fist Debug.Notification("Player has nothing in his left hand") else ; Player has a weapon in their hands myWeapon1=GetPlayer().GetEquippedWeapon() ; right hand myWeapon2=GetPlayer().GetEquippedWeapon() ; left hand ;Get the shout EndEvent Int property ... something like the above... I think using a resgisterForSingleUpdate would be good for pulling this info whenever necessary, and then I can make a function to equip it. If anyone can spruce this up I appreciate it, I'm a little confused on what the best practice would be for this and I gotta go to class :/ Thanks for reading :D Link to comment Share on other sites More sharing options...
steve40 Posted September 27, 2012 Share Posted September 27, 2012 See the first two script examples here for a function that stores all the player's equipped items into an array. Link to comment Share on other sites More sharing options...
Korodic Posted September 27, 2012 Author Share Posted September 27, 2012 Ah, that may very well be all I needed. Thanks. Never really experimented with the Form stuff. But of course FG is clever like that. I'll be looking into how to make this a little bit more function-able and share the results when I get there :) Link to comment Share on other sites More sharing options...
Recommended Posts