Jump to content

Scripting Help


VincentIcarus

Recommended Posts

Okay, so just to double check because 1) I have no idea what I'm doing and 2) I want to make sure this works. You attach this script to the armor:

 

If Player.GetInCell TOPSCasino || Player.GetInCell TOPSrestaurant || Player.GetInCell ULCasino ; (and so on until you got ALL casino interiors in the IF condition)

set inCasino to 1

else

set inCasino to 0

 

if InCasino = 1

if (player.GetEquipped ArmorWithPistol)

player.UnequipItem ArmorWithPistol

if (Player.GetItemCount ArmorWithOutPistol == 0)

player.AddItem ArmorWithOutPistol 1

endif

player.EquipItem ArmorWithOutPistol

player.RemoveItem ArmorWithPistol 1

endif

else

if (player.GetEquipped ArmorWithOutPistol)

player.UnequipItem ArmorWithOutPistol

if (Player.GetItemCount ArmorWithPistol == 0)

player.AddItem ArmorWithPistol 1

endif

player.EquipItem ArmorWithPistol

player.RemoveItem ArmorWithOutPistol 1

endif

endif

Link to comment
Share on other sites

  • Recently Browsing   0 members

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