reviving heroes general timer

  • Thread starter Thread starter polymorph
  • Start date Start date
P

polymorph

Guest
how do you right a script that every 15 seconds the trigger attempts to revive all heroes that are currently dead
 
At the beginning of the game~ set variables for the heroes...
it'd be quite easy~ lets say there are 8 players~ it would be
a repetition of stuff~

Event
Map initialization
Condition
-------none needed
Actions
(here you'll set the variables)
set x1 = unit player1 (x1 is a random name i just made up right now)
set x2 = unit player2

so on and so forth...
then~

make a new trigger

Event
Every 15 seconds of game time
Condition
--------none
action
if/else/then
(for the if condition use boolean comparison)
if
hero is dead is true
then
revive x1 instantly at location(make a good spot for that)
else
do nothing

then you repeat that for all players~ hope you get what im trying to tell you~
 
uh sorry i thought i understood correctly and knew what i was doing but how do you set variables for the action trigger
 
dont need variables or anything...
Code:
Revive Heros
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is dead) Equal to True
                    Then - Actions
                        Hero - Instantly revive (Picked unit) at (Center of (Playable map area)), Show revival graphics
                    Else - Actions
 
AgentPaper said:
dont need variables or anything...
Code:
(((Matching unit) is A Hero) Equal to True)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is dead) Equal to True
                    Then - Actions
                        Hero - Instantly revive (Picked unit) at (Center of (Playable map area)), Show revival graphics
                    Else - Actions
i did everything above this point but how do you add a loop and the

if-
if-
then-

part
 
its an action caled If Then Else (Multiple actions) near the top of the list. how did you get by with out it?! :D :nuts:
 
oh >< i knew that but its weird cuz i'm on RoC and If Then and Else is all in one line unless the loop is the problem. and yea...i don't know how to make that either.

(((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions

one more question...how do you get the editor to do the (Actions) thing
 
Revive Heros
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is dead) Equal to True
Then - Actions
Hero - Instantly revive (Picked unit) at (Center of (Playable map area)), Show revival graphics
Else - Actions

i did exactly that and when it resurrects it only does like 1 hero at a time, like if 2 heros died then after the 15 seconds it only revives one hero
 
Create a unit-group variable to track dead heroes
I've called it ugDeadHeroes (how original)
Code:
A hero dies
Events
    A unit dies
Conditions
    ((Dying unit) is A Hero) Equal to True
Actions
    Unit Group - Add (Dying unit) to (ugDeadHeroes)
Then another one to resurrect heroes
Code:
Bring heroes to life
Events
    Time - Every 15.00 seconds of game time
Conditions
    None
Actions
    Unit Group - Pick every unit in (ugDeadHeroes) and do
        Hero - Instantly revive (Picked unit) at (Any area), Show revival graphics
    Unit Group - Remove all units from (ugDeadHeroes)
 
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