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.
[01:59 pm]
jjf28 -- sraw531
sraw531 shouted: leave for a weekend and sen shoutbox is still on the same page as the last time I was here.
mm, all the shouts are on discord now
[06:02 am]
sraw531 -- Mini Moose 2707
Mini Moose 2707 shouted: On the internet, too! I'm so brave!
NudeRaider
NudeRaider shouted: did you just criticize the American way of life?
[06:00 am]
sraw531 -- leave for a weekend and sen shoutbox is still on the same page as the last time I was here.
[02:23 am]
thekian -- Pr0nogo
Pr0nogo shouted: why's https important anyways, does it prevent you from showing up as often in search results or something
Prolly doesn't actually matter if you're on a secure network anyway.
[11:54 pm]
Dem0n -- Pr0nogo
Pr0nogo shouted: why's https important anyways, does it prevent you from showing up as often in search results or something
yeah Google probably puts secure sites on the top of searches now
[11:50 pm]
Mini Moose 2707 -- Also they can probs hijack your session and steal your login but w/e
[11:50 pm]
Mini Moose 2707 -- It's so they can't intercept and read the dank memes you shitpost here
[11:49 pm]
Pr0nogo -- why's https important anyways, does it prevent you from showing up as often in search results or something
[11:09 pm]
jjf28 -- we still don't have https? it's current year!
[11:08 pm]
Jack -- 2020 election gonna happen before SEN gets https tho :hurr:
Please log in to shout.


Members Online: Roy, Voyager7456