Convoluted but the only way?

Post » Tue Aug 04, 2015 3:48 am

Oblivion had spells that you could put self spells in WITH the target spells. But that convenience is not Skyrim.

I need a fireball that when it hits the ground and explodes will also affect the player if they are too close. But the hard code will not allow any magic explosions to harm the one that cast it.

To do this I had to make the explosion place an invisible activator that then uses a script to place an explosion.

Have I really discovered the ONLY way to do this in skyrim? :blink:

User avatar
James Rhead
 
Posts: 3474
Joined: Sat Jul 14, 2007 7:32 am

Post » Mon Aug 03, 2015 2:57 pm

Off the top of my head, how about a script projectile spell? When the projectile hits it casts the fireball spell on that spot. Then it can check to see if the caster is in the AOE and apply damage as appropriate.

Not sure that's any less convoluted, mind.
User avatar
Noely Ulloa
 
Posts: 3596
Joined: Tue Jul 04, 2006 1:33 am

Post » Mon Aug 03, 2015 4:39 pm

Unfortunately you cannot put scripts on projectiles themselves.

User avatar
RUby DIaz
 
Posts: 3383
Joined: Wed Nov 29, 2006 8:18 am

Post » Mon Aug 03, 2015 8:09 pm

Setting Effect Archetype to "Script" and Delivery to "Aimed" doesn't work?
User avatar
Kayla Keizer
 
Posts: 3357
Joined: Tue Dec 12, 2006 4:31 pm

Post » Tue Aug 04, 2015 4:22 am

Oh I see you mean to abandon the projectile system and do it all with scripting.

Sigh, :confused: I have so many scripts already in use in my mods I was really trying to do this the "right way" (minimal scripting and mostly using the hardcode systems).

Yes you are right I could script this using cell walking to catch the caster, and script the resistance to the spell, los, damage, knockback and other effects...

Or place the explosion itself via the script, but that would only work if I hit an activator or actor. If the spell hits the ground or other surface (that will not run the scripts) it would not work. :shrug:

Edit: Ok I think I was making this more difficult than it needed to be. I found I could make a FAKE invisible spell explosion place a real explosion using no scripts at all and no tokens. This is very straightforward and works to attack both the caster and the other targets around the explosion. :clap:

User avatar
Cash n Class
 
Posts: 3430
Joined: Wed Jun 28, 2006 10:01 am

Post » Tue Aug 04, 2015 5:57 am

I wasn't thinking cell walking as such. If the delivery is aimed, then you must have a target point. If yo ucan find out where that is (and I don't know for sure that you can) then you just set off the fireball effect at that location.

All the script needs to do then is work out the distance to the caster to see if he or she is inside the AOE.

That said, the solution you've settle on sounds better than what I had in mind :smile:
User avatar
cosmo valerga
 
Posts: 3477
Joined: Sat Oct 13, 2007 10:21 am


Return to V - Skyrim