Vilham2 Posted April 17, 2009 Share Posted April 17, 2009 I need a script that will add a thrown item to the npc that was hit's invintory. Preferebly have about 80% chance. The item code is 01000EA8. I am completely lost with this scripting. What it will do is when i throw my ninja star if it makes contact with a npc it dissapears and it (or a copy) is placed in their invintory. If it misses i would still like to be able to manually find it and pick it up. Btw this is my second mod Link to comment Share on other sites More sharing options...
TGBlank Posted April 17, 2009 Share Posted April 17, 2009 You don't need the item code. If it's a weapon, the structure is as follows: Script -> base effect -> object effect (weapon type) -> weapon (added as enchantment). The script should do, more or less:begin scripteffectstartif (getrandompercent > 20) additem throwingstareditoridendifend Link to comment Share on other sites More sharing options...
Vilham2 Posted April 17, 2009 Author Share Posted April 17, 2009 That script isn't working. Im probably doing something wrong. It goes in the script cat right? not the object effect cat? Because the object effect category is greyed out. Link to comment Share on other sites More sharing options...
TGBlank Posted April 17, 2009 Share Posted April 17, 2009 You create a script as an effect.Then create a base effect with that script as effectThen create an object effect with that base effect and set it as weaponTHEN, you add the effect to the weapon. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.