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.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: Revenant