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:53 am]
Suicidal Insanity -- Were you able to enter arbitrary AIScript IDs?
[09:53 am]
Suicidal Insanity -- Its not that important, text trigedit apparently parses one of the files to verify AIScript IDs, but I dont think the code is used
[09:52 am]
Suicidal Insanity -- I know that. But if AIScript has 'multiplayer-simple' does BWScript have 'multiplayer-simple-ex' or 'multiplayr-simple'?
[05:19 am]
Pr0nogo -- aiscript has vanilla AI, bwscript has expansion AI
[11:38 pm]
Suicidal Insanity -- Hmm, it doesn't store string names does it?
[11:27 pm]
Suicidal Insanity -- Does the bwscript.bin file just replace the aiscript.bin file with AIs that use BW units, or is the union of both files used by the game?
[10:15 pm]
Suicidal Insanity -- Cool, I have french unit names in my unit tree
[09:03 pm]
Suicidal Insanity -- Either that or the installer wasn't really korean
[09:02 pm]
Suicidal Insanity -- Hmm, I had an old SC 1.15 anthology installer lying around for korean starcraft, but the unit names and so on don't seem to be localized?
[08:05 pm]
Suicidal Insanity -- And there are way too many threads complaining about staredit not working - why aren't they using scmdraft ;(
Please log in to shout.


Members Online: Roy, jjf28