Death Counters
Jun 7 2018, 5:57 am
By: Nib-  

Jun 7 2018, 5:57 am Nib- Post #1



Fyi - the Wiki is absolute garbage. Take a look for yourself. This is what I currently have. The 10 seconds have passed message spams instead of waiting 10 seconds. Any idea?

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Alan Turret", Exactly, 0);

Actions:
Set Deaths("Player 1", "Alan Turret", Set To, 120);
Preserve Trigger();
Comment("Set Alan Turret - Death Counter 120 secs - 10 secs");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Alan Turret", At least, 1);

Actions:
Set Deaths("Player 12", "Alan Turret", Subtract, 1);
Preserve Trigger();
Comment("Subtract 1 Alan Turret - Death Counter 120 secs - 10 secs");
}

//-----------------------------------------------------------------//

Trigger("Current Player"){
Conditions:
Deaths("Player 1", "Alan Turret", Exactly, 0);

Actions:
Display Text Message(Don't Always Display, "10 seconds have passed");
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("All players"){
Conditions:
Always();

Actions:
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Preserve Trigger();
Comment("[Hyper Trigger]");
}



None.

Jun 7 2018, 6:48 am Swampfox Post #2



Nvm that's wrong



None.

Jun 7 2018, 6:51 am Swampfox Post #3



Quote from Nib-
Fyi - the Wiki is absolute garbage. Take a look for yourself. This is what I currently have. The 10 seconds have passed message spams instead of waiting 10 seconds. Any idea?

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Alan Turret", Exactly, 0);

Actions:
Set Deaths("Player 1", "Alan Turret", Set To, 120);
Preserve Trigger();
Comment("Set Alan Turret - Death Counter 120 secs - 10 secs");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Alan Turret", At least, 1);

Actions:
Set Deaths("Player 12", "Alan Turret", Subtract, 1); <------------------------------------------------------------------------------------------ should be Player 1
Preserve Trigger();
Comment("Subtract 1 Alan Turret - Death Counter 120 secs - 10 secs");
}

//-----------------------------------------------------------------//

Trigger("Current Player"){
Conditions:
Deaths("Player 1", "Alan Turret", Exactly, 0);

Actions:
Display Text Message(Don't Always Display, "10 seconds have passed");
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("All players"){
Conditions:
Always();

Actions:
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Wait(0);
Preserve Trigger();
Comment("[Hyper Trigger]");
}

Man why is that so hard to find. I'm honestly not sure why it's spamming if it isn't being decreased in the first place though... Are you perhaps not playing as player 1 while there isn't a player 1 in the game? In that case the player 1 triggers will never run because a player doesn't own them.

Post has been edited 1 time(s), last time on Jun 7 2018, 7:00 am by Swampfox.



None.

Jun 7 2018, 7:02 am DarkenedFantasies Post #4

Roy's Secret Service

Besides the mistake spotted by Swampfox, I think the reason why it's spamming the text message is because the trigger is owned by "current player" instead of player 1? Also you could simply display text message in the first trigger when you set the deaths back to 120, instead of having the 3rd trigger, which is unnecessary.




Jun 12 2018, 9:32 pm rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

Set Deaths("Player 12", "Alan Turret", Subtract, 1);

You're subtracting 1 from player 12's deaths instead of player 1's death. Maybe try using "current player" more and have the owner be player 1 or all players?



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:56 pm]
MTiger156 -- wut... ?_?
[05:13 pm]
Dem0n -- hmmmmmmm
[05:09 pm]
Bar Refaeli -- Hello, for a mere 20 minerals I can not only double, but triple your minerals with a whopping return of 14 minerals!! (original investment not refunded) Msg me while supplies last
[05:04 pm]
Bar Refaeli -- :wob:
[01:41 am]
Pr0nogo -- SENs like youtube is down
[01:19 am]
MasterJohnny -- seems like youtube is down
[2018-10-16. : 7:27 am]
Pr0nogo -- Pr0nogo
Pr0nogo shouted: Pr0nogo Pr0nogo
Pr0nogo
Pr0nogo shouted: Mini Moose 2707
FaRTy1billion
FaRTy1billion shouted: this FaRTy1billion was me quoting it before i deleted it
Pr0nogo
Pr0nogo shouted:
Mini Moose 2707
Mini Moose 2707 shouted:
Pr0nogo
Pr0nogo shouted: Pr0nogo
[2018-10-16. : 7:27 am]
Pr0nogo -- Pr0nogo
Pr0nogo shouted:
Pr0nogo
Pr0nogo shouted: Mini Moose 2707
[2018-10-16. : 7:27 am]
Pr0nogo --
[2018-10-16. : 6:54 am]
O)FaRTy1billion[MM] -- this FaRTy1billion
FaRTy1billion shouted: FaRTy1billion
was me quoting it before i deleted it
Please log in to shout.


Members Online: Roy, jjf28, Pr0nogo, Dem0n, Stacyyp