Celissa Posted February 25, 2006 Share Posted February 25, 2006 Would it be at all feasible to have a spell that required a reagent to cast? I am very much a newbie at doing pretty much anything modding related besides reading tutorials, but I don't think I recall seeing something similar described anywhere. Is it at all possible, and if so, what sort of scripting magic would be required to make it work? Sorry if this is a stupid question that's been answered a dozen times already, but I don't *think* I've seen any such thing. Link to comment
Avenger Posted February 25, 2006 Share Posted February 25, 2006 It is easy to remove an item when casting a spell, but checking on it is tough. It would require scripting. Probably the easiest way is to create an invisible creature whose script does the work. Link to comment
Galactygon Posted February 25, 2006 Share Posted February 25, 2006 The problem with removing an item via opcode is that all of the items of the same filename on that character will be removed. I am more of in favour of deducting pieces of gold representing the buying/managing components rather than carrying around 12 different herbs/gemstones that fill up your inventory. It is easier to check for and to deduct pieces of gold than implementing the individual components themselves. -Galactygon Link to comment
Celissa Posted February 25, 2006 Author Share Posted February 25, 2006 Bother, the removing of all instances of an item was one thing I was concerned about, since my theoretical reagent was a throwing dagger. Ah well, back to the drawing board. Thank you both for your help. Link to comment
jastey Posted February 25, 2006 Share Posted February 25, 2006 Galactygon: Not if you script using "TakePartyItemNum(S:ResRef*,I:Num*)"? Link to comment
Galactygon Posted February 26, 2006 Share Posted February 26, 2006 That does work, but it removes such items from the party rather than a character. This means that it will not work for monster NPCs, and with party characters, it will remove one instance of an item from player1 (and then player2, etc.) rather than the LastSummonerOf(Myself). It will work, but not very well. -Galactygon Link to comment
jastey Posted February 26, 2006 Share Posted February 26, 2006 Ah, I see the problem. Thank you for clarifying. Link to comment
Celissa Posted February 27, 2006 Author Share Posted February 27, 2006 Hmm, I could deal with that problem, really, and I do like the idea of taking a reagent for the spell. It's a special ability anyway, not something half the party would be casting. Thanks for the advice! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.