Jump to content

Need a little help.


DJhobo

Recommended Posts

I decided that this was mod talk but I am new so please correct me if I am wrong.

 

Hi there, so I decided to make a new mod to teach myself scripting. The mod basically adds a suitcase that is carried around As equipment and when equipped it will be removed then add and equip a special 9mm pistol. When the 9mm is unequipped it is removed and the suitcase is re-added.

I have Done all the scripts and got it to work, but after the first time the gun is removed again and you get the suit case, equipping the suitcase causes the game to crash

The scripts on the items are as follows:

 

Suitcase:

 

scn SuitcaseScript

begin onEquip
if player.GetEquipped 01000ae7 ;01000ae7 is the case
player.additem 01000AE0 1 1 ;01000AE0 is the pistol
player.equipitem 01000AE0 0 1
player.removeitem 01000ae7 1
endif
END
Pistol:
scn Gunscript
Begin OnUnEquip
if player.GetEquipped 01000AE0 ==0
player.removeitem 01000AE0 1
player.additem 01000ae7 1
endif
END
Please give me a hand :confused:
Link to comment
Share on other sites

First (and most important) JIP is (as is normally the case) correct.

It is because she is an android, don't be fooled by the smoke like Det. Deckard.

 

Just wanted to add I thought your idea was both amusing and clever.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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