Does this trigger have a problem?

  • Thread starter Thread starter Raz-u
  • Start date Start date
R

Raz-u

Guest
I want this to happen. I made a thread about map morphs and i wanna know if i this is right. I must work one mroe week to make all things working so i dont wanna wait that much to test. I know people around here can say if a trigg is good.

Events: Unit - Morph 0001 <gen> finishes casting an ability.
Condition : (Ability being cast) equal to Morph to Archer
Action : Player - Set (Owner of (Casting unit)) Current gold to (((Owner of (Casting unit)) Current gold) - 200)
 
I fixed it up for you.

Morph
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Morph to Archer
Actions
If ((Player 1 (Red) Current gold) Less than 200) then do (Order (Casting unit) to Stop)) else do (Do nothing)
Player - Add -200 to (Owner of (Castingunit)) Current gold

This also stops it if they don't have enough gold. In your trigger, they would cast and deduct the gold even if they didn't have 200 gold. I used the action "Player - Add property". Just put a negative 200 there and it should work. Also, I used "Unit - A unit starts the effect on an ability" because with Begins, the player can cancel the spell before it deducts cooldown and mana and save cooldown and mana but still cast the ability.

[EDIT] Hehe, AceHart was right. I've got anack for using the wrong actions, then going over them for 10 minutes and finding a small little bug that did it;).
 
If you "skip remaining actions" if there isn't enough Gold,
players will simply be able to still cast the ability, but for free.
If you want your ability to cost Gold, you must order the unit to "stop"
if there isn't enough.

"Casting unit" is an event response and, therefore, is local, not global...
It will work just fine.


HTH
AceHart
 
thanks :D ! I posted it here cause it sounded a bit funny to me ... thanks a lot both of you!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • 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
  • 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

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top