Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   Neverwinter Nights 1 & 2 Also SoU & HotU Forum (http://www.ironworksforum.com/forum/forumdisplay.php?f=16)
-   -   Some questions about the On Hit: Cast Spell property in the toolset (http://www.ironworksforum.com/forum/showthread.php?t=36404)

Memnoch 02-15-2004 12:59 AM

I've been having a play with the On Hit Cast Spell property that Bio have put into the toolset with HotU and I wanted to know how to only make an On Hit Cast Spell effect fire only a certain % of the time. The way it works now it appears to fire each time a successful hit is made. Even though monsters get a DC/Save check as to whether they suffer damage, the effect itself, including the visuals, still fire each successful hit. Is there a way to make this happen only a certain % of the time without scripting it?

For example I want to put in an On Hit Cast Spell which casts a Great Thunderclap 10% of the time on each successful hit. The weapon becomes way too overpowered otherwise. Any idea on how to do this without scripting it?

Chewbacca 02-15-2004 01:10 AM

Sorry, no way to do it without scripting.

If it is even possible to do with scripting, it may be a big pain in the ass I think. You would have to run a script that adds the item property to the item 10% of the time the character hits. I cannot think of an event handler that would do this effectively and effeciently off the top of my head.

BTW-There is a discussion in the NWN forum, thread called 'item creation', includes talk about the benefits and drawbacks of using this item property.

[ 02-15-2004, 01:12 AM: Message edited by: Chewbacca ]

Memnoch 02-15-2004 03:06 AM

Gee, this is a bit of a bummer...kind of makes it pointless to use this property, eh. :rolleyes:

Epona 02-15-2004 07:49 AM

I like that idea Mario - I enjoy all the weapons that have that sort of feature in the IWD games - it adds that bit of uncertainty. I have no idea how to do it though.

Memnoch 02-15-2004 08:00 AM

Yes, well, if a spell fires on each successful hit it pretty much makes a weapon massively overpowered. Imagine putting something like On Hit: Cast Sunburst on a Divine Mace or something - you'd only want it to fire 5% of the time because if it fires every time it makes the weapon hugely overpowered. I'm a bit disappointed with that property then. :(

Chewy, where's that thread you're referring to? There are a million threads there with "item creation" in the text at the Bio forums. :D

Epona 02-15-2004 09:11 AM

Quote:

Originally posted by Memnoch:
Chewy, where's that thread you're referring to? There are a million threads there with "item creation" in the text at the Bio forums. :D
I think he means my thread in the NWN forum here? It's near the top of the page. Unfortunately there's no info on how to do this, but an interesting discussion about casting spells on hit (mostly about the drawbacks) sparked by my mentioning some monks gloves that cast chain lightning on hit. Now if I could get them to do it say 1% or 2% of the time that would be great, so if you do manage to find out, could you point me in the right direction?

Chewbacca 02-15-2004 11:34 AM

Yeah, I meant in the NWN forum here! Sorry for the confusion.

Anyway I was thinking, it may be somewhat easy to script using the on-hit cast spell: unique property. This route will only work for the module the item is designed and scripted for.

I gotta go to work now but I can help pursue this idea more later if interested....

SpiritWarrior 02-15-2004 05:29 PM

You could do it with a hakpak or script it in as a unique property but then that defeats the purpose.

You could do it with the regular Onhit though, setting Blindness to a DC of 14 let's say, and applying some posistive damage. Call the item 'Solar mace' for instance and there you have it. The only thing that is lacking is the vfx but trust me, sunbeam on an Onhit will quickly lag you.

Memnoch 02-16-2004 06:49 AM

If you don't mind, Chewy, that would be good. I'll be pursuing it myself. The peeps at the Bio forums don't seem to know how to do it either. [img]graemlins/awcrap.gif[/img]

No rush though. [img]smile.gif[/img]

SpiritWarrior, I don't mind scripting it as I'm not planning to cart these items around online - they're going to be for specific mods. It's just REALLY annoying to be given this property but in a form that makes it just about impossible to work with from a gameplay balance point of view. I'm not sure how difficult it was to even put it in but what it's missing is a DC check on firing on successful hit. That would make it workable and useable.

[ 02-16-2004, 06:56 AM: Message edited by: Memnoch ]

Legolas 02-16-2004 09:13 AM

What you could do is use the "On Hit Cast Spell: Unique Power (OnHit)". From there it should be easy enough to script the DC check, some random factor in %chance at casting the spell, the amount of spells of which kind to be cast, visual effects, the list goes on.
Although it's not ideal, many things in the toolset could do with a little expansion. I name as examples the control over spellbooks and the incomplete list of feats under the BonusFeat property.


All times are GMT -4. The time now is 08:05 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved