Special revive conditions...

B

bobdakilla

Guest
Truly sorry about the length, but I need it all to be able to explain whats going on.
Basically, I'm trying to revive all heros twice, give a message to all players at the time of deaths, and then after 2 deaths give the triggered player a defeat. *Wipes sweat*

Heres what I have so far....

Revive
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Conditions
((Dying unit) is dead) Equal to True
((Dying unit) is A Hero) Equal to True
Deaths Less than or equal to 0
Actions
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Triggering player)) + will be revived in 30 sec.s)
Set Deaths = (Deaths + 1)
Wait 30.00 seconds
Hero - Instantly revive (Dying unit) at ((Triggering player) start location), Show revival graphics

Last Life
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Conditions
((Dying unit) is dead) Equal to True
((Dying unit) is A Hero) Equal to True
Deaths Not equal to 0
Deaths Not equal to 2
Deaths Equal to 1
Actions
Game - Display to (All players) for 3.00 seconds the text: ((Name of (Triggering player)) + has only this life to live!)
Set Deaths = (Deaths + 1)

Defeat
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Conditions
((Dying unit) is dead) Equal to True
((Dying unit) is A Hero) Equal to True
Deaths Not equal to 0
Deaths Not equal to 1
Deaths Equal to 2
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has been defeated for having 2 deaths! Good luck (Says sarcastically)!)
Game - Defeat (Triggering player) with the message: Defeat!

What happens is when heros die, all triggers seem to set off at the same time.
I need them to set off only when needed.
 
bobdakilla said:
Revive
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Conditions
((Dying unit) is dead) Equal to True <== Are u using a variable 4 that?
((Dying unit) is A Hero) Equal to True
Deaths Less than or equal to 0
Actions
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Triggering player)) + will be revived in 30 sec.s)
Set Deaths = (Deaths + 1)
Wait 30.00 seconds
Hero - Instantly revive (Dying unit) at ((Triggering player) start location), Show revival graphics

Last Life
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Conditions
((Dying unit) is dead) Equal to True
((Dying unit) is A Hero) Equal to True
Deaths Not equal to 0 <===shouldn't need this
Deaths Not equal to 2 <===or this
Deaths Equal to 1 <===This should do it

Actions
Game - Display to (All players) for 3.00 seconds the text: ((Name of (Triggering player)) + has only this life to live!)
Set Deaths = (Deaths + 1)

Defeat
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Conditions
((Dying unit) is dead) Equal to True
((Dying unit) is A Hero) Equal to True
Deaths Not equal to 0
Deaths Not equal to 1
Deaths Equal to 2
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has been defeated for having 2 deaths! Good luck (Says sarcastically)!)
Game - Defeat (Triggering player) with the message: Defeat!

What happens is when heros die, all triggers seem to set off at the same time.
I need them to set off only when needed.

READ BOLD!
You may need to change it to something like this (make all triggers except first initially off):
Code:
Untitled Trigger 001
    Events
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
===> YOUR THINGS IN HERE
            Then - Actions
===> YOUR THINGS IN HERE
            Else - Actions
                Trigger - Turn on (Your trigger)
                Trigger - Turn off (This trigger)

Try something like that. Remeber make other triggers intially off (by unchecking the box at the top of trigger window).
-Husky
 
Wow, nice reply! That helps a lot.
Oh and this..
((Dying unit) is dead) Equal to True <== Are u using a variable 4 that?
I'm not using variable.
--Edit--
Oh, what exactly do u mean by the last code part that u mention?
Do u mean add it to the last 2 triggers and not the first?
 
Well then you don't need that trigger because in the event it says: A unit dies (dead, gone from this world whatever, right?). Yeah you don't need it.
 
husky_003 said:
Code:
Untitled Trigger 001
    Events
  [B]  A unit dies <=== Oops for got this, sorry.[/B]
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
===> YOUR THINGS IN HERE
            Then - Actions
===> YOUR THINGS IN HERE
            Else - Actions
                Trigger - Turn on (Your trigger)
                Trigger - Turn off (This trigger)

Read Events...
 
Correct me if im wrong, but i cant turn off a trigger and turn on another on the same Else line at least i can't find a way. Sorry if there is a way, im a new to map making!
 
Sure you can, here's proof:
Code:
Else - Actions
    Trigger - Turn on [COLOR=Blue](This trigger)[/COLOR] <=== Just click down the blue and select your trigger.
    Trigger - Turn off [COLOR=Blue](This trigger)[/COLOR] <===

It's just under Trigger in the pull down menu.
-Husky
 
It still doesnt seem to work...I must be doing something wrong.

Heres more code...

Revive
Events
Unit - A unit Dies
Conditions
Actions
Trigger - Turn on (This trigger)
If ((Deaths Equal to 0) and (((Triggering unit) is A Hero) Equal to True)) then do (Set Deaths = (Deaths + 1)) else do (Trigger - Turn off (This trigger))
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Triggering player)) + will be revived in 30 sec.s)
Wait 30.00 seconds
Hero - Instantly revive (Dying unit) at ((Triggering player) start location), Show revival graphics

Last Life
Events
Unit - A unit Dies
Conditions
Actions
Trigger - Turn on (This trigger)
If ((Deaths Equal to 1) and (((Triggering unit) is A Hero) Equal to True)) then do (Set Deaths = (Deaths + 1)) else do (Trigger - Turn off (This trigger))
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Triggering player)) + has only this life to live!)
Wait 30.00 seconds
Hero - Instantly revive (Dying unit) at ((Triggering player) start location), Show revival graphics

Defeat
Events
Unit - A unit Dies
Conditions
Actions
Trigger - Turn on (This trigger)
If ((Deaths Equal to 2) and (((Triggering unit) is A Hero) Equal to True)) then do (Game - Defeat (Triggering player) with the message: Defeat!) else do (Trigger - Turn off (This trigger))
Game - Display to (All players) the text: ((Name of (Triggering player)) + has been defeated for having 2 deaths! Good luck (Says sarcastically)!)

Thanks for the help by the way.
 
I would change it to something like:
Code:
Revive
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Unit-type of (Triggering unit)) Equal to Footman
            Then - Actions
                Set T1_Score = (Deaths + 1)
                Game - Display to (All players) the text: ((Name of (Triggering player)) +  has died and will be revived in 30 seconds.)
                Wait 30.00 seconds
                Hero - Instantly revive *Your unit* at ((Owner of (Triggering unit)) start location), Hide revival graphics
            Else - Actions
                Trigger - Turn off (This trigger)
                Trigger - Turn on (Last Life)

Made that whole trigger up just for you.
Change all of them like that one.
Hope that helped,
-Husky
 
Hmm, had some spare time. On the most part this should work, but I'm not 100% sure.
Anyway here goes:
Code:
Revive
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Unit-type of (Triggering unit)) Equal to Footman
            Then - Actions
                Set Deaths = (Deaths + 1)
                Game - Display to (All players) the text: ((Name of (Triggering player)) +  has died and will be revived in 30 seconds.)
                Wait 30.00 seconds
                Hero - Instantly revive No unit at ((Owner of (Triggering unit)) start location), Hide revival graphics
            Else - Actions
                Trigger - Turn off (This trigger)
                Trigger - Turn on Last Life <gen>

LAST LIFE: This is pretty much the same as above, and is not really needed. But if you want it, that's your choice.

Code:
Last Life
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Deaths Equal to 1
                (Unit-type of (Triggering unit)) Equal to Footman
            Then - Actions
                Set Deaths = (Deaths + 1)
                Game - Display to (All players) the text: ((Name of (Triggering player)) +  has died and will be revived in 30 seconds.)
                Wait 30.00 seconds
                Hero - Instantly revive No unit at ((Owner of (Triggering unit)) start location), Hide revival graphics
            Else - Actions
                Trigger - Turn off (This trigger)
                Trigger - Turn on (Defeat)

DEFEAT

Code:
Defeat
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Deaths Equal to 2
            Then - Actions
                Game - Defeat Player 1 (Red) with the message: ((Name of (Triggering player)) +  has been defeated for having 2 deaths! Good luck (Says sarcastically)!)
            Else - Actions
                Do nothing

And Defeat can probably be shortened down to this:

Code:
Defeat
    Events
    Conditions
        Deaths Equal to 2
    Actions
        Game - Defeat Player 1 (Red) with the message: ((Name of (Triggering player)) +  has been defeated for having 2 deaths! Good luck (Says sarcastically)!)

And there you have it.

Good luck & any problems please post them up.
-Husky
 
If you were to use those codes that Husky made, wouldn't they only work once, because if you say "Turn off (this trigger)" it makes it so only one person could die. Wouldn't you have to make a code for every player?
 
Ya I might....
I've been experamenting with the code and still can't get working results.
If anyone can help out with some more tips or code please post!

I dont get this part of code...

Code:

Trigger - Turn on Last Life <gen>
(How do i find the trigger after I click on "Turn on *This Trigger*"


::Edit::
Apperently I have been miss reading husky's posts ..
I now understand I have to use the "IF, THEN, ELSE, Multiple funtions" code
Sorry for the mix-up. :(
(Although I figured out this problem I still need the questions anwsered above)
 
Just click the blue and it should be listed in the Variable pull down menu or the one above it.
-Husky
 
(For those of you who read this, Im creating a triggers that will cause a player defeat after 2 deaths using variable "Deaths")
Well I used your code and even modified it a few times till i came up with this...

Revive
Events
Unit - A unit Dies
Conditions
Actions
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions
((Triggering unit) is A Hero) Equal to True
Then - Actions
Set Deaths = (Deaths + 1)
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Triggering player)) + will be revived in 30 sec.s)
Wait 30.00 seconds
Hero - Instantly revive (Dying unit) at ((Triggering player) start location), Show revival graphics
Trigger - Turn off (This trigger)
Else - Actions
Trigger - Turn off (This trigger)


Defeat
Events
Unit - A unit Dies
Conditions
Actions
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions
((Triggering unit) is A Hero) Equal to True
Deaths Equal to 2
Then - Actions
Game - Defeat (Triggering player) with the message: Defeat!
Trigger - Turn off (This trigger)
Else - Actions
Trigger - Turn off (This trigger)

This seems to be correct, but of course it doesnt work. I added Trigger- Turn off because i decided that it was nessesary even if conditions were true or untrue on both triggers to turn them off; at least i believe thats right. Well, here we go again! :D
 
Events:
A unit dies

Conditions:
dying unit is a Hero

Actions:
set death = death + 1
if then else
- death equal to 1
then
- game - display ...
- wait
- revive Hero
else
- defeat




> Trigger - Turn on (This trigger)

This won't do anything :)
 
Hmm

You could have another trigger

MonkeyOnKrack
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Trigger - Turn on ((your trigger))
 
um

It turns on the trigger that revives the heros so if you have it so that everytime the trigger is used and it turns off it turns it on
 
well then what would be the point of turning off the trigger in the first place?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    I think on the new one they did change it, but idk. I don't really care whatever the government is doing right now because it's consistently absurd. Like what is RFK doing in charge of health anything? I love the bear story because WTF was that, but also, pretty much every time he talks it's WTF. Like even his voice sounds microwaved
    +1
  • Varine Varine:
    The pyramid is fucking dumb as shit, no matter how you arrange it.
  • Varine Varine:
    It's actually remarkably easy to make mayonnaise though. Fun fact, it USED to kind of be a French mother sauce. I believe that Careme considered it one, it may have been aioli but that has also built a different meaning than it used to. An aioli is just mayonnaise I mixed with other shit typically, I didn't start it don't come at me
  • Varine Varine:
    It's very hard to do it on a large scale though
  • Varine Varine:
    Depending on how you pour the oil the consistency can vary wildly, but that's true for most emulsions. I can only make about two quarts at a time with my robo coup, and if I have to make several in series because I forgot to order it becomes really obvious even when I do it. We have to wait and mix them all together to make sure we have the same thing.
  • Varine Varine:
    Hollandaise is also kind of like that, emulsions require a very steady hand to do exactly the same every time.
  • Varine Varine:
    Luckily I live in an age with electricity so it's way fucking faster, but when I was just a boy trying to find my place I had some hardcore chefs that made use do things like that by hand. It is WAY easier to get right by hand because you control it and can feel it, but it takes soooooo much longer. And on the scale a modern kitchen requires... I serve 400-500 guests on average per day right now, if I had 100 then we could do things way better
  • Varine Varine:
    But we can't do that. In the winter yeah, but I HAVE to get people through here right now so I can afford the staff that we CAN do that. We have about 100 days of summer, and if that summer doesn't make us what it will, then I can't operate the other most of the year with my staff. The owner is talking about closing two days a week to cut down on labor, I told him he should cut down on vacations and it did not go great. I do think I won though, I have to keep my fucking core staff and they have to be gainfully employed
  • Varine Varine:
    Sure some of them might take a second job, but I can't just cut my entire staff to unlivable hours, nor can I can cut them off all winter if I want them to come back.
  • Varine Varine:
    And also, there is no fucking way I'm pulling these hours come september. I only do this right now because I have to, the second I don't have to be the one doing it I won't be
  • Varine Varine:
    I have a 5 person core staff in the kitchen, not including me or Chef Ben
  • Varine Varine:
    Though two of those people are likely not making it this year. One of them has been replaced, the other I am kind of trying to. He's being a giant bitch, today I had to get onto him because in the three hours before I left he had taken like thirty minutes for cigarette breaks
  • Varine Varine:
    And he was also complaining to me the other day that he was out of weed so couldn't smoke any before work that day, and was confused about why I was annoyed he was telling me, his boss, that he is smoking weed everyday before work.
    +1
  • Varine Varine:
    Like yeah I can tell. I don't need to fucking know.
  • Varine Varine:
    So now he's getting scrutinized and will not be top of the list. I know I don't have the smartest people but I do expect them to have some common fucking sense
  • Varine Varine:
    I did do a rare thing for me and hire a girl last month without warning. Everyone was made at me because I started her at like 21, but she worked with me before and I was like don't care. She made 19 at her old job and I wanted her to come work with me, she is the best
    +1
  • Varine Varine:
    I'm going to get her a raise at the end of the summer. She wants to go to school again, but I want her to still work with me so.... she kind of can just tell me what the price is. I can go to 25 if she keeps up. I need to get her onto line more, that's what she wants, but I need her where she is and it's not fair that she doesn't get the little bit of raise that comes with it. She can do it no problem, I've worked with her there.
  • Varine Varine:
    It's just hard to move and train people unnecessarily right now. And also the line fucking sucks, it's not any more fun. This is turn and burn so I have the bankroll, and everyone suffers for it
  • Varine Varine:
    Eventually we'll get it balanced, we'
  • Varine Varine:
    we're starting online orders and stuff, but I also turn that off all the time because I barely keep up trying to be the best at Sysco shit
  • Varine Varine:
    I think it's gonna be a good fall and winter though. We're going to have a good staff, they will get along, they will be able to manage the workload and the complications, they know how to really cook this year, like every person on line knows their steak temps. Some of them use thermometers a lot and they don't always use them right, but they do know how to do it. Failure, especially in this field, is the only way to get better. They'll get it
  • Varine Varine:
    They won't get feel down while they do the thermometer, but we didn't have an instant read probe when I was learning. Like they did but god knows how off it is, you HAD to do it by feel. Even if the chef was fine with me bringing my own, it takes too long. Poke and know
  • The Helper The Helper:
    420 threads in the Artificial Intelligence forum :)
  • The Helper The Helper:
    Happy Monday!
    +1
  • The Helper The Helper:
    and then it was Tuesday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top