Aller au contenu

Exploding torches


4 réponses à ce sujet

#1
Guest_dewkl_*

Guest_dewkl_*
  • Guests
I'm making this thread to ask the best way to go about doing this, whether this is feasible at all.

Black Powder: Throw black powder at a burning torch (level asset) to produce an explosion. The explosion takes high damage to nearby targets and stuns them for 3 seconds. (5m radius explosion, 25m spell cast range).

To make this as easy as possible, can parts of the Walking Bomb spell be used to create this effect? I obviously can't use the actual assets, but is it possible to create an invisible creature ("torch") that can be placed on top of these torches to give the illusion that the player can target the actual torches? The same creature works as a trigger for the spell (by being killed, producing walking bomb-like AOE). 

Any other suggestions? 

#2
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
this is an awesome idea. i wish i came up with it.

#3
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
The simplest way I can think of to do this would be to put an invisible placeable overtop of the torch. On the clicked (rather than the used) event, check the player's inventory to see if they have any powder. If so, create an explosion at the location of the torch and remove the powder. If they don't, put up a message saying they don't have enough. You may also want to do a distance check. A cooldown would be a bit tricker to script, but would prevent the player from spaming it. If the clicked event doesn't work for some reason (I haven't used it much), try using the use event, but give the placeable a very large interaction radius.



For the explosion itself, you could look at the fireball impact script as an example. Mostly you're placing an explosion VFX, then grabbing all the creatures within a radius and damaging them.

#4
Craig Graff

Craig Graff
  • Members
  • 608 messages
If you specifically wanted to use an item ability to accomplish this, you could still put an invisible placeable on the torch, but make sure to set the targettype column of your ABI_* 2da to 8 if you want to ensure only placeables can be targeted.

If you go this route, I'd suggest looking at IITEM_ACID_FLASK and it's associated script, item_aoe_instant.

Modifié par Craig Graff, 08 mars 2010 - 12:32 .


#5
Guest_dewkl_*

Guest_dewkl_*
  • Guests
Thanks for both replies, lucky me getting assistance from bioware members. I was originally planning for this to be a talent or spell with a cooldown, but I'm reconsidering whether this is better as an (black powder) item.

I'll update this post as soon as I've tried everything out, in case others are interested in similar mechanics.

Modifié par dewkl, 08 mars 2010 - 05:14 .