How to make such a trigger

  • Thread starter Thread starter Demonic
  • Start date Start date
D

Demonic

Guest
Hi all,

I'm trying to make a trigger but I don't know what event type and such to choose.That trigger would do:
1.
Event:Player 1 has 3 keeps.
Action:Turn on next trigger

2.Event: A keep health goes below 50%,attacked by player 1 unit(this is how u take a keep)
Action:Gives control of this keep to neutral hostile,and display to player 1 :You can't have more than 4 keeps.

Thx you
 
What do u mean? Do u want a trigger that only allows u to have 3 keeps total? :confused:
 
for that even you would have to do somthing liek this

Event: Unit finsishes construction
Cond: Unit equal to Keep
Act: Set (varkeep)+1

Event:Every .1 seconds of the game
Cond: (varkeep) = 3
Act:Turn on next trigger
 
Code:
Keeps
    Events
        Unit - Keep 0001 <gen> Takes damage
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (((Life of Keep 0001 <gen>) - (Damage taken)) / (Max life of Keep 0001 <gen>)) Less than 0.50
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Number of units in (Units owned by (Owner of (Damage source)) of type Keep)) Less than 3
                    Then - Actions
                        Unit - Change ownership of Keep 0001 <gen> to (Owner of (Damage source)) and Change color
                    Else - Actions
                        Game - Display to (Player group((Owner of (Damage source)))) the text: You can't have more then three keeps.
                Unit - Set life of Keep 0001 <gen> to 100.00%
            Else - Actions
Note that with this trigger, You would have to have one trigger for each keep. I'm sure that you can adapt it so you can have one trigger for them all.
 
Here is the trigger for if some1 has more than 3 keeps:
Code:
Events: every.1 secs of game
Cond: VarKeeps > 3
Acts: Give random unit of unit-type (keep) ownd by player 1 red to Neutral Hostile, Game - Text Auto-Timed to player group player 1 red "You can only have 3 Keeps total!"
If u want u can add color to ur text too ^^ Check out this thread: Thread
 
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