Kabolte Posted November 21, 2009 Share Posted November 21, 2009 I'm working on my own mod, and I have a couple questions about scripts. 1. How would I make a script that affects every variety of a certain type of weapon, for example, glass shortswords? Would I have to use an array and add each individual weapon? 2. How can I get the reference id(or whatever it is) of someone that is attacked with a certain weapon, say, a silver longsword? I want it to apply to everyone using that weapon, not just me. 3. How can I make an opponent stagger back or fall down? Link to comment Share on other sites More sharing options...
David Brasher Posted November 23, 2009 Share Posted November 23, 2009 1. How would I make a script that affects every variety of a certain type of weapon, for example, glass shortswords? Would I have to use an array and add each individual weapon? I would suggest making an object script and applying it to all eight of the varieties of glass short swords that I see on the menu. It would not be very time-consuming to apply it to those eight entries. The way Oblivion handles object scripts, there will be a copy of the script running on every glass shortsword on Nirn. The variables do not communicate between copies of the script. One problem is that if there are custom glass shortswords in mods, they will not follow your script. I know of no such function as GetIsWeaponAGlassShortSword. I suppose some other script could have some long wordy checks to see if any of the eight sword varieties are equipped or in inventory for particular actors that were listed in the script. There are some things the game engine was not really designed for, and it is not good at doing them. Link to comment Share on other sites More sharing options...
Recommended Posts