trigger help

  • Thread starter Thread starter Deathsong
  • Start date Start date
D

Deathsong

Guest
heres my trigger

Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Empower effect
Actions
If (((Triggering unit) is A Hero) Equal to True) then do (Wait 0.50 seconds) else do (Unit - Set mana of (Casting unit) to (0.00 - 1.00))



what im trying to do is make a trigger that will take away 1 mana every .50 of a second when i cast the ability empower my problem is i think the else action in my trigger is wrong with the (0.00 - 1.00) i figgured that would add no mana and take a way 1 but it doesnt eny idea on what i did wrong or how to change it to fix it :confused:
 
That doesnt do anything unless the caster is not a hero... You would want something like

E: Unit starts the effect of an ability
C: (Casting unit) is a hero equal to true
A: Unit - Set mana of (Casting unit) to (Current Mana of (Casting unit) - X)
A: Set <OrderVariable> = (Current order of (Casting unit))
A: Wait (Game-time) .5 seconds
A: If (Current order of (Casting unit) equal to <OrderVariable> then do (Trigger - Run this trigger (Ignoring conditions) else do (Do nothing)

That will take away 1 'X' mana every .5 while the unit is doing the spell, it depends on the type of spell this is as to if it will work, say its immolation. Immolation is a turn on, so it wont work because you cast once and its over. (But immolation drains mana alone ;) )
 
So maybe he should just base the spell off of immolation then.
 
Deathsong said:
heres my trigger

Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Empower effect
Actions
If (((Triggering unit) is A Hero) Equal to True) then do (Wait 0.50 seconds) else do (Unit - Set mana of (Casting unit) to (0.00 - 1.00))



what im trying to do is make a trigger that will take away 1 mana every .50 of a second when i cast the ability empower my problem is i think the else action in my trigger is wrong with the (0.00 - 1.00) i figgured that would add no mana and take a way 1 but it doesnt eny idea on what i did wrong or how to change it to fix it :confused:

seems like you dont understand if then elses here a quick lesson

The if-then-else statement evaluates a condition and performs the first set of equation(s) if the condition is true and the second set of equation(s) if the condition is false.
 
Deathsong said:
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Empower effect
Actions
If (((Triggering unit) is A Hero) Equal to True) then do (Wait 0.50 seconds) else do (Unit - Set mana of (Casting unit) to (0.00 - 1.00))
So, let's see:

As soon as a unit begins casting an ability, check the ability being cast. If the ability being cast is "Empower effect," check if the triggering Hero is a Hero. If he is a Hero, wait half a second. If he is not a Hero, set his mana to 0 - 1 (or -1). Then do nothing until the ability is cast again.

That's probably not what you wanted. :)
 
You want the thing to drain mana?

Wouldn't it be easier to have a trigger with the event of
Every x seconds
And the actions to take away mana, and then have a SECOND trigger that states "A unit begins the effects of <ability>, so turn on the first trigger" and a THIRD trigger that states "A unit stops the effects of <ability> so turn OFF the first trigger"?

Or just base it off Immolation like someone managed to mention? :rolleyes:
 
:confused: so if i base it off immolation it will drain mana so then let me see :confused: um

Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Empower effect <-----( empower effect that is immolation)

what would i put next to make it cast a difrent ability on the hero ?? and were would i find it all :confused: im still lerning the tigger editor :/


oh and what othere abilitys like immolation take mana over time :/ cuz i need 3 or 4 abilitys for my hero in my map :/ and i noticed if i use the same ability more then once it kinda casts all of the abilitys at once that use the same ability as a base :S
 
ya im gonna have to base it off immolation :/ i tryed what rad posted but i think i might of got it wrong 2 lol i dont think i got this part

A: Unit - Set mana of (Casting unit) to (Current Mana of (Casting unit) - X)
A: Set <OrderVariable> = (Current order of (Casting unit))

like i meen i couldnt find (Current Mana of (Casting unit) - X)
and a <OrderVariable> i didnt understand the variable Tutorial at all :/ so when ever i see variable eny thing im like :eek: :confused: and then :banghead: so ya i never been able to get thoughs to work so my entire map all the triggers in it not one is using a variable that i had to make thought from what i can make out a lot of things that i did would of took hours less time to figgure out and easyer to make :/
 
For future reference, when you see someone post a trigger in a thread you probably won't be able to find the same thing in the trigger editor because the triggers in the trigger editor dont have the blanks filled in.

"current mana of (triggering unit)" for example is something you would fill in for a value blank. you find it under "Unit - property" on the pull down menu.
 
u got it all wrong...

U use immolation so it drains mana but edit immolation so it cost 1 mana point over time and it does no damage. And edit the buff so there isn't any..

You don't need any triggers.
 
Krakka said:
u got it all wrong...

U use immolation so it drains mana but edit immolation so it cost 1 mana point over time and it does no damage. And edit the buff so there isn't any..

You don't need any triggers.

Or you could make it cost 0 mana.

Just a small nitpick. Otherwise, he's absolutely right. The immolation method has the added bonus of making invincibility potions actually work, in case you have any of those in the map.
 
ok now im just lost :/ i do need a trigger though i need it to cast an ability when i turn on immolation and stop that ability when i turn it off i all so need 2 othere abilitys like immolation so i can have all 3 of my abilitys work sepritly cuz if i use the same ability for 3 abilitys ill click one and all 3 will turn on if i dont have a trigger i dont think that will work out :S
 
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