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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Ultraviolet, Roy