Jump to content

Multiple Combat Actors Script


Rizalgar

Recommended Posts

It's okay! Just tell me, "Riz, just stop bro, go do something with your life."

 

Well, I'm not going to.

 

Anyhow, as it states, I'm trying to get multiple combat targets inside a script. From Googling I've seen that it'd most likely require an OnUpdate function, but they're so vague about how to do this, but that's also not the only problem I'm having. So here goes...

 

 

- What I'm trying to do -

 

Create a spell, that when cast, freezes nearby actors in place.

 

- What's the problem? -

 

I can't get it to track more than one target.

When the initial damage spell is cast (which is a scripted spell, not a straight out the box frost spell) it's supposed to drop an activator that casts the Freeze spell on the enemies, this is also not working.

 

- What have I done so far? -

 

Made the scripted damage spell, which works on a single target, but not multiple enemies.

Made the scripts for both activators. Yep, both.

Made the activator, placed randomly in the world, to be called upon on cast.

 

- Why not just make a regular Frost spell and use Area of Effect and Slow? -

My spells magicka cost and damage come from two global variables, so this would not work for me.

 

Here's the scripts, point out my ignorance!

 

Damage script

 

  Reveal hidden contents

 

 

The Frostnovagem to be dropped on cast script

 

  Reveal hidden contents

 

 

The activator that should cast the spells at up to three targets script

 

  Reveal hidden contents

 

 

 

- Edit -

 

As far as getting multiple targets to get hit by a spell, would an OnUpdate() with StopCombat() StarCombat() set up work? It seems like a doozy to do, so an insight would be cool before I even attempted it.

Edited by Rizalgar
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...