Ability Help

  • Thread starter Thread starter Jethro
  • Start date Start date
J

Jethro

Guest
I want to make a chain ability that does damage and casts a spell on each unit it attacks. Please Help.
 
oh sorry and i want it to cast as part of the normal attack not an autocasting button or a manual cast button
 
that doesnt make any sense. "i want to cast a spell without autocasting or casting it"
 
This is doable, but unless you want to use a simple chaining spell like chain lightning, it will require you to manually acquire the targets via a trigger and cast the spells. You may also have to supply the chain graphic effects if you want something more visible.

Without writing your triggers for you, here's the algorithm

Let hero X has this skill

Make a trigger such as

Event:
- A Unit is Attacked

Condition:
- Attacking Unit is hero X

Action:

- Set heroPoint to position of attacking unit
- custom script set wantdestroygroup
- set ChainAmount = 0
- pick all units in 500(or whatever aoe) of heroPoint
- loop
- if ChainAmount less than or equal to 3(or how many jumps you want)
- then
- set HitPoint to position of picked unit
- create 1 dummywhateverspellcasteryouwant at HitPoint
- order last created unit to cast whateverspellyouwant on picked unit
- custom script destroypoint hitpoint
- else
- do nothing
- set ChainAmount = ChainAmount + 1
- << end loop >>
- custom script destroypoint heroPoint

and that pretty much does it. Add in whatever graphical or lightning effects you want
 
Thank you for your help sud. you helped more than i expected (this is for a tower in a new TD i am making where you have a unit that casts a chain lightning like spell as its normal attack and every target hit gets slowed, -armor, or bashed)
 
Maybe he wants the tower to do something on top of the chain attack, like maybe stun, or faerie fire, or perhaps slow. At least that's the impression he gave me.
 
If you havent noticed im really bad at explaining my self sorry. Sud is right i want to have a chain lightning spell and each target gets slowed, or some other Ability cast on them at the same time.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top