Jump to content

Need some help on a script :)


ArcticZero

Recommended Posts

ScriptName aaAutoEquipGear

short DoOnce

Begin GameMode
message "Auto Equip Script Loaded"

if (Player.GetEquipped asgothtrenchtop01 != 1 Player.GetEquipped Realmasamune == 1 && DoOnce != 1)
message " "
Player.AddItem asgothtrenchtop01weap 1
Player.EquipItem asgothtrenchskirt01
Player.EquipItem asgothtrenchtop01weap

if(Player.GetItemCount asgothtrenchskirt01weap > 0)
	Player.RemoveItem asgothtrenchskirt01weap 1
endif

set DoOnce to 1
endif

if (Player.GetEquipped asgothtrenchskirt01 != 1 Player.GetEquipped AaaHSSaintWhGold == 1 && DoOnce != 2)
message " "
Player.AddItem asgothtrenchskirt01weap 1
Player.EquipItem asgothtrenchtop01
Player.EquipItem asgothtrenchskirt01weap

if(Player.GetItemCount asgothtrenchskirt01weap > 0)
	Player.RemoveItem asgothtrenchskirt01weap 1
endif

set DoOnce to 2
endif

if (Player.GetEquipped AaaHSSaintWhGold != 1 && Player.GetEquipped Realmasamune != 1 && DoOnce != 3)
message " " 
Player.EquipItem asgothtrenchskirt01weap
Player.EquipItem asgothtrenchtop01weap
set DoOnce to 3
endif
End

 

There's my script. Basically what I did was make a separate ESP for this, which also contains two "alternate" versions of the Trench Coat set which have weapon meshes attached to them. I loaded it after the Goth Shop, Real Masamune, and BlackLuster mods, since it references to some of the items included in them.

 

What I did was load a save file which included the three aforementioned mods, but this time I loaded it with the new ESP. I actually added the message at the top so I would know if the script was initialized. Sadly though, nothing happens when I load my save with the ESP. It's as if the script isn't even there. Any idea what I'm doing wrong? Thanks..I'd appreciate the help and all. :(

Link to comment
Share on other sites

I got it down now anyway. Used the Wrye Bash esmify and espify technique to make my ESP dependent on three other ESPs which it references to. Also fixed up the script a bit and it's working now! Yay! :D
Link to comment
Share on other sites

Wow thanks!

 

The various tutorials, the CS Wiki, and studying scripts from other mods really help a lot. Couldn't have done a thing without the vast knowledge of the veteran modders out there. :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...