Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Death Counter Timer
Death Counter Timer
Jun 16 2017, 8:18 pm
By: Mimose  

Jun 16 2017, 8:18 pm Mimose Post #1



Heyhey,

i just read the wiki article about Death Counter based timer which is really nice!
But i have some questions about it:
1. Has the Player who is getting the timer to be "Neutral"?
2. In wiki the condition for setting the desired amount is "Never" .... O_o?! (Could i replace it instead with "...death is 0"?)
3. Do i need to use substract only? Or could I start from 0 and adding values?
3a. I tried "add" and resetting on value 10 - It was about 15-16 seconds till a new loop startet - In wiki is written: "If you are using hyper triggers on fastest, the counter will change 12 times per real-time second" - how do those difference could be? has it to do with 1. and 3.? (I'm using 4x62 "Wait for 0 ms" hypers on same player who has the timer-trigger)

Thanks in advance :teehee:


Edit:
Testet it now with substracting values from a starting value of 120
When im using it on Player 6 (the one with hypers and nothing else) It took about 1 or 2 minutes till a new loop started (sry i didnt take the time, but surely it was a lot longer than 10 sec.)
Changing the triggers to Neutral did not work at all...

Edit2: reading through the FAQ "PLAYERS 9, 10, 11, and 12" makes it clear why it doesnt work for neutral, im just curious why its written that way in the wiki :)

Post has been edited 2 time(s), last time on Jun 16 2017, 9:06 pm by Mimose.



None.

Jun 17 2017, 1:47 am theskinsurf Post #2



I always put my hypers on All Players and don't use any other mode of waits in my maps.



Current project: Star Rogue
Other projects: Triumvirate Defense, Skirmish Islands

Jun 17 2017, 1:35 pm LoveLess Post #3

Let me show you how to hump without making love.

Quote from Mimose
1. Has the Player who is getting the timer to be "Neutral"?
2. In wiki the condition for setting the desired amount is "Never" .... O_o?! (Could i replace it instead with "...death is 0"?)
I believe both of these are placeholders, set the player to anything you want instead of neutral. Just remember that if the player is not there, the triggers he owns will be ignored. This applies to neutral players as well, since there is no player/computer, their triggers do no operate.
Quote from Mimose
3. Do i need to use substract only? Or could I start from 0 and adding values?
Using 0 as the end for timers is generally a good idea if you ever decide to increase how long that specific timer goes for by simply changing the amount you add.
Quote from Mimose
3a. I tried "add" and resetting on value 10 - It was about 15-16 seconds till a new loop startet - In wiki is written: "If you are using hyper triggers on fastest, the counter will change 12 times per real-time second" - how do those difference could be? has it to do with 1. and 3.? (I'm using 4x62 "Wait for 0 ms" hypers on same player who has the timer-trigger)
Hm, and your hypers are preserved of course?
Reset Timer
Players

  • Player 1
  • Conditions

  • Deaths for Player 1 Terran Marine are exactly 0
  • Actions

  • Preserve Trigger
  • Deaths for Player 1 Terran Marine Set to 120
  • Effect you want to happen every 10 seconds


  • Countdown Timer
    Players

  • Player 1
  • Conditions

  • Deaths for Player 1 Terran Marine are at least 1
  • Actions

  • Preserve Trigger
  • Deaths for Player 1 Terran Marine subtract 1


  • Those two triggers will give you a 10-second timer, roughly. If you want to get more exact, do 12.6(?) deaths and multiply it by the amount of seconds you want. Then remove anything after the decimal or round it up, etc.



    None.

    Jun 17 2017, 2:58 pm Azrael Post #4



    Quote from LoveLess
    If you want to get more exact, do 12.6(?)
    11.9 (or 1000/84, to be perfectly exact).




    Jun 17 2017, 3:31 pm Mimose Post #5



    Quote from LoveLess
    Hm, and your hypers are preserved of course?
    I checked it to be sure but yes they are preserved (thats why there are only 62 wait-triggers in one triggerblock ;))
    This is what my triggers look like:
    Reset Timer
    Players

  • Player 6
  • Conditions

  • Current Player has suffered at most 1 death of Timer.
  • Actions

  • Preserve Trigger
  • Modify death counts for Current Player: Set to 120 for Timer.
  • Create 1 Artanis (Scout) at 'P7Tower' for Player 7.


  • Countdown Timer
    Players

  • Player 6
  • Conditions

  • Always
  • Actions

  • Preserve Trigger
  • Modify death counts for Current Player: Substract 1 for Timer.


  • I measured with the countdowntimer which is running there for other purposes and the Trigger looped after 195 Countdowntimer-seconds...
    In case you want to check this out for yourself i attached the map. (Make sure to go into Force "Commander" (Pl 7) before starting the map.)

    Edit:
    To check if those deathcounter based timers really work i made a brand new map...and well there it worked really fine, i guess those issues have to do something with my map :><: ... ill check triggers tomorrow and will share the results

    Edit2:
    *doh* Im sorry, im dumb again - There where wait triggers for the leaderboard. Because they did belong to all players some waitblocks occured. Fixing it was quite eazy.

    I <3 Dathcounter timers :)


    But another question just for interests:
    The wiki says its possible to adjust the deathcounter so that it fits to the Countdown-Timer - how could that be done? I imagine a system of two Deathtimers would work ?!

    Attachments:
    Medieval SF 0.2.scx
    Hits: 2 Size: 145.05kb

    Post has been edited 2 time(s), last time on Jun 18 2017, 7:57 am by Mimose.



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [10:53 pm]
    Butch -- prob some weird character on a string somewhere or something dumb like that
    [09:50 pm]
    Ultraviolet -- It's weird indeed, not really sure what is so special about Spellsword that causes it to react differently on Remastered, usually EUDs are the cause of things like that
    [05:35 pm]
    Zoan -- I haven't played in like 2 years so maybe something changed I don't know about
    [05:35 pm]
    Zoan -- No-Name-Needed-II
    No-Name-Needed-II shouted: Zoan No idea if anything changed.. I've made several maps that push TMOANC to the limit and they are still working.. 3 causes of it I've narrowed down are -Too many islands which some terrain on certain tilesets can create micro islands on cliff edges with basic isometric.. -Too many changes in elevation from high to mid to low ground.. -And too many tiles from certain doodads that block tank fire..
    Any clue as to why a map which would previously work fine on past patches would now suddenly not work on the current remastered patch?
    [05:34 pm]
    Zoan -- I'll try Butch's suggestion of running in 32-bit, maybe that will fix it?
    [05:34 pm]
    Zoan -- Oh_Man
    Oh_Man shouted: Did martiss' link not work?
    It crashes as it does when you use EUD's incorrectly - like it closes starcraft and has the error window pop up with a ticket to send to Blizzard. I know it's not EUDs though since obviously spellsword doesn't use any, so IDK what it is.
    [03:19 pm]
    No-Name-Needed-II -- Zoan No idea if anything changed.. I've made several maps that push TMOANC to the limit and they are still working.. 3 causes of it I've narrowed down are -Too many islands which some terrain on certain tilesets can create micro islands on cliff edges with basic isometric.. -Too many changes in elevation from high to mid to low ground.. -And too many tiles from certain doodads that block tank fire..
    [2022-5-23. : 12:21 am]
    Oh_Man -- Wat precisely is wrong with spellsword now?
    [2022-5-23. : 12:19 am]
    Oh_Man -- Did martiss' link not work?
    [2022-5-22. : 8:11 pm]
    Zoan -- Also my KOTK maps all have the nooks and crannies issue when they didn't before; what changed?
    Please log in to shout.


    Members Online: Zergy, Roy