Trigger Based Ability Levels

  • Thread starter Thread starter WILDMAN
  • Start date Start date
W

WILDMAN

Guest
When making a trigger-based ability, how do you specify which level the ability has to be to trigger the actions? For example, the first level of the ability would have no special effect, the second level would attach a special effect to the unit's weapon when used, and the third level would attach a special effect to the overhead of the unit when used.
Sorry if this is unclear, im still pretty new to mapping, any help appreciated.
 
you specify it through a trigger condition.

If you know something about triggers, you will know about events, conditions and actions (sorry I don't know how much you have learnt about triggers).

You need to do an integer comparison condition, and you will find a function in the integer function list to look up the current level of a specific hero.

so make a new trigger, right-click in the trigger, and select "new condition", and then select "integer comparison, and click on the 1st of the parameters you see in the "Condition Text" (its the blue writing in the window). That will open up the integer function list, where you can find the hero level lookup function. It's called "Hero - Hero Level".

Code:
A Hero Levels
    Events
        Unit - A unit Gains a level
    Conditions
        (Hero level of (Leveling Hero)) Equal to 2
    Actions
        Special Effect - Create a special effect attached to the overhead of (Leveling Hero) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
 
Variables can also handy for this. You can set something up with an integer value, say MyAbilityLevel

Then do something like:

- A unit learns an ability

- Ability being learned is MySpell

- Set MyAbilityLevel = MyAbilityLevel + 1

Then you can simply check when unit starts the effect of the ability what the MyAbilityLevel is set to and do your special effect attachment then.

Of course that's the lazy way. You can actually just get the level value of an ability directly and save load on memory from a million variables. But yea, either way works.
 
Got it changing the integer comparison settings to (Level of (Ability being cast) for (Triggering unit)) Equal to, and make a trigger for each level.
Thanks for the help :)
 
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