Jump to content

nubish scripting question


Goujosamma

Recommended Posts

I am currently working on my first "real" mod, it is a quest mod which introduces two new creatures. the stumper is that one of the monsters needs to have a dart like missile weapon which will appear in the players weapon inventory, but when they shift click it; like pulling out an arrow, I want to call a text box and add the item to the players ingredients inventory. Obviously, I will actually need two items, one a ammo type and one an ingredient. They should use the same nif and icon. I can make both items, but how do I script the trigger? I can't find an example script to rip on any weapon or ammo, and I don't want to have that annoying you can not equip this item message in my players face all the time.

 

So, if anyone would be so kind as to give a few ideas for script triggers for the ammo item, or if anyone knows of an item with a similar script trigger, especially a weapon, or ammo with an on drop sort of thing on it that I could look at,

your input could save me hours and hours of research and would be greatly appreciated. mmm hmmm!!

 

thanx in advance, Goujosamma

Link to comment
Share on other sites

Bit tired so I just kind of skimmed it.

 

Try

scriptname namedscript

Begin OnEquip Player
stuff
end

 

This way it only works when its in the players inventory, and the player clicks on it. It will call the script before the action so you don't end up eating it. And even if somehow you do at least the script will kick in and give you your fruity weapon.

Link to comment
Share on other sites

Bit tired so I just kind of skimmed it.

 

Try

scriptname namedscript

Begin OnEquip Player
stuff
end

 

This way it only works when its in the players inventory, and the player clicks on it. It will call the script before the action so you don't end up eating it. And even if somehow you do at least the script will kick in and give you your fruity weapon.

not really the answer I was looking for... or the question I asked. but thanks for the just kinda effort any ways! The ammo item needs to bear the script.. never mind, I'll see if I get a serious response before I re-explain my question. thank you very mediocre for your fruity time and insults. Also... I seldom eat my ammo. maybe if my signature was longer than my post people would think I was more important.

GS

Link to comment
Share on other sites

Never mind, sorry to jerk your chain. Turns out, once you stop obcessing over a problem the answers just pop into your head. so heres the flow....

 

a. monster shoots dart. on hit, dart adds dart to as ammo to inventory(plus several other nasty things) bwa ha ha!

 

b. player notices dart in inventory and removes it. this dart on drop does an add.item for the dart into the players inventory as an ingredient

 

one mesh, one texture, three nifs, three scripts

 

Nice...

GS.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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