A little help with skill trigger, it isn't working

  • Thread starter Thread starter Stratoss
  • Start date Start date
S

Stratoss

Guest
Event
Unit - A unit begins Casting an ability

Conditions
(Ability being cast) Equal to Finishing Blow

Actions
Set caster = (casting unit)
Set target = (targeted unit)
Animation - Play caster's attack animation
Unit - Cause caster to damage target , dealing damage of attack type Hero and damage type normal

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(target is dead) Equal to True
(target is a Hero) Equal to True

Then - Actions
Floating text - Create floating text that reads +1 AGI! with Z offset 0.00 using font size 10.00, color (100%, 0%, 0%), and 0.00% transparency
Hero - Modify Agility of caster : Add 1

Else - Actions
Do Nothing

Animation - Reset caster Animation
_______________________________

I can't seem to get the trigger above to work, it does the damage but it doesn't add the 1 Agi when the enemy hero dies. (Nor shows the floating text). Please help and thanks.
 
try to change "target is dead equal to true" to something like "current hp of target is less than or equal to 0"
 
I've added a wait button, and changed it to check for target's hp instead of whether he's dead, but it's still not working :(
 
copy your exact trigger as text (right click on the name of the trigger and select copy as text) and post it here


oh yea put it inside code tags too, makes it easier to read.
 
Code:
Finishing Blow
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Finishing Blow 
    Actions
        Set caster = (Casting unit)
        Set target = (Targeted unit)
        Animation - Play caster's attack animation
        Unit - Cause caster to damage target, dealing 250.00 damage of attack type Hero and damage type Normal
        Wait 0.10 game-time seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((target is A Hero) Equal to True) and ((Life of target) Less than or equal to 0.00)
            Then - Actions
                Floating Text - Create floating text that reads +1 AGI! above caster with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                Hero - Modify Agility of caster: Add 1
            Else - Actions
                Do nothing
 
Set target = (Targeted unit)

that should be set target = target of ability being cast

nevermind that MUST work if its doing damage to target....

try this
put 2 more if/then/else things before that one you already ahve (for 3 total)

in the first one make the condition (target is a hero equal to true)
then: game message - display text to all players "Target is a hero"
else: game message - display text to all players "Target is not a hero"

next one:
if condition: target's current life is less than or equal to 0.00
then: game message - display text to all players "Target's life is less than or equal to 0"
else: game message - display text to all players "Target's life is not less than or equal to 0"

and see what messages it shows when you use it
 
Ok, thanks, after changing to "target = target of ability being casted" it started working well.
 
That is really weird since the targetted unit worked for doing the damage. What does the targetted unit even have to do with adding one agil to the casting unit. :nuts:
 
ok, after getting the agi buff to work the animation stops working :confused:

Updated trigger codes:
Code:
Finishing Blow
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Finishing Blow 
    Actions
        Set caster = (Casting unit)
        Set target = (Target unit of ability being cast)
        Animation - Play caster's attack animation
        Wait 0.50 game-time seconds
        Unit - Cause caster to damage target, dealing 250.00 damage of attack type Hero and damage type Normal
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((target is A Hero) Equal to True) and ((Life of target) Less than or equal to 0.00)
            Then - Actions
                Floating Text - Create floating text that reads +1 AGI! above caster with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                Hero - Modify Agility of caster: Add 1
            Else - Actions
                Do nothing
 
maybe put the animation line above the "new" target set one? i dunno, worth a try. :confused:
 
Reset the caster's animation at the end of the trigger.
 
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