Show a timer window to only one player

M

Mikecaos

Guest
Ok, to my title is pretty explicit, but i'll still explain a little.

I'm doing a maze (maybe some people who play maze know me).
It's my first map but I think i'm getting pretty good.
The only problem is i have RoC (i'm suppose to buy tft in my next day off) but its not sure and i'm continuing to work on RoC.

In my second level, there is a region who activate a countdown timer. YOu have time to get to a point, before you die.
So i create as timer window. there it's ok. I put the timer in it and show the window.
But i would want to show it only to the owner of the triggering unit.
I know how to select it : (Player number of (Owner of (Triggering unit)))].
But i don't know how to applicate on the timer window. Actually, it only show the time to the player select, but other players still can see the window.

Tank you for your futur help.

Mikechaos

Oh, by the way, sorry for my english, i'm not completly billingual and my first language is french.
 

X.Terror.X

New Member
Reaction score
10
no need to look around i think u missed this trigger


Code:
timer
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Countdown Timer - Start timer as a One-shot timer that will expire in 30.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title *Your Title*
        Countdown Timer - Hide (Last created timer window) for Player 1 (Red)

u need to do it each player but it works so gl with ur map :D
 

Anachron

New Member
Reaction score
53
You need:
Timer ( Variable - Timer - Array 12 )
Timer_Window ( Variable - TimerWindow - Array 12 )

Well then use this
Countdown Timer - Create a Timer Window for Timer with describtion....
Set Timer_Window[PlayerNumber]= Last Created Timer Window
Countdown Timer - Start Timer[PlayerNumber] as a One-shot timer that will expire in xx.xx seconds
Countdown Timer - Hide Timer
Countdown Timer - Show Timer for Player[PlayerNumberOfPlayerThatShouldSeeTheTimer] :p

no need to look around i think u missed this trigger


Code:
timer
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Countdown Timer - Start timer as a One-shot timer that will expire in 30.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title *Your Title*
        Countdown Timer - Hide (Last created timer window) for Player 1 (Red)

u need to do it each player but it works so gl with ur map :D

You don't need it do to for every player o_O ;)

Edit: Ups, sorry for double posting I forgot that I already posted - Mozilla Tabs xD
 
M

Mikecaos

Guest
Wow that was fast.

But the problem is i dont see the 'for player" in my trigger. Here is what I got.

CountDown Timer - Show SaveFromDeath[(Player number of (Owner of (Triggering unit)))]

and that's it. There is no "for player"
 

Anachron

New Member
Reaction score
53
Yeah true because I / we mostly write our replies without opening WE and make small mistakes ;).
 

X.Terror.X

New Member
Reaction score
10
who dont u do this?


Code:
timer
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Countdown Timer - Start timer as a One-shot timer that will expire in 30.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title *Your Title*
        Countdown Timer - Hide (Last created timer window)
        Countdown Timer - Show (Last created timer window) for (Owner of (Entering unit))

looks better for me entering unit was the unit that entered the region
 

Anachron

New Member
Reaction score
53
Ok here is my trigger which works 100%ly:

You need:
Timer ( Variable - Timer - Array 12 )
Timer_Window ( Variable - TimerWindow - Array 12 )
Timer_Begone ( Variable - Boolean - Array 12 )

Well then use this

Event: A unit enters *yourrect*
Condition: Timer_Begone[(Player number of (Owner of (Triggering unit)))] equal to false
Actions:
Set Timer_Begone[(Player number of (Owner of (Triggering unit)))]=True
Countdown Timer - Create a Timer Window for Timer with describtion....
Set Timer_Window[(Player number of (Owner of (Triggering unit)))]= Last Created Timer Window
Countdown Timer - Start Timer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in xx.xx seconds
Countdown Timer - Hide Timer
Countdown Timer - Show Timer for Player[(Player number of (Owner of (Triggering unit)))]

This will make sure this timer will only be triggered once by entering it for player also only shows timer to the owner of the unit ;) :p
 
M

Mikecaos

Guest
Ok ty. i'm still searching, but i always find the "for player" whent the question is answered so it don't help me.

And i have both variable already.

This is my trigger (sry some part are in french cause i have french version (not mine lol. Going to buy english one in same time of tft)

Code:
Events
    Unit - A unit enters Display Text 3 <gen>



Condition
     Events(Unit-type of (Triggering unit)) equal to Demon Hunter
     SaveFromDeathBool[(Player number of (Owner of (Triggering unit)))] equal to  FALSE
Actions
    Set Player = (Owner of (Triggering unit))
    Game - Display to (Player group((Owner of (Triggering unit)))) the text: |CFFFFFC00  Too bad...
    Countdown Timer - Start DeathCount1[(Player number of (Owner of (Triggering unit)))] as a Un coup timer that will expire in 45.50 seconds
    Countdown Timer - Create a timer window for DeathCount1[(Player number of (Owner of (Triggering unit)))] with title ((Name of (Owner of (Triggering unit))) +  is dead in)
    Set SaveFromDeath[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
    Countdown Timer - Show SaveFromDeath[(Player number of (Owner of (Triggering unit)))]
    Set SaveFromDeathBool[(Player number of (Owner of (Triggering unit)))] = TRUE
    Wait 45.00 seconds
    Countdown Timer - Destroy SaveFromDeath[(Player number of (Owner of (Triggering unit)))]
    If (SaveFromDeathBool[(Player number of (Owner of (Triggering unit)))] equal to  TRUE) then do (Unit - Explode (Triggering unit)) else do (Do nothing)

I tried to traduct most of it.

I read both of your triggers, but there is still the "for player" i can't find. And if i look at my trigger, its pretty much the same you did undead lol.
So i'm only missing the "for player" and i dont get it...
 

Anachron

New Member
Reaction score
53
Mikecaos so whats your question now?! xD I haven't understand what you are trying to make now :p
 
M

Mikechaos

Guest
Hmm btw, that's me, i had made a mistake in my last username lol..
If someone pass by here, you can delete Mikecaos.

Ok so i'm trying to show the window timer to only one player and my trigger isnt doing that...
 

Anachron

New Member
Reaction score
53
Use
Countdown Timer - Hide *Timer*
then use
Countdown Timer - Show *Timer* For Player *Player* :)
 
M

Mikechaos

Guest
Your not getting what i'm saying.

I dont have "for player blabla bla" in my action list. Only Show timer.
not Show timer for player.

Maybe its only in tft?
I dont know, but i don't have it and i can't do what you're saying since the beginning.
 

Anachron

New Member
Reaction score
53
Shit ok then its only TFT.
Btw, get TFT, it costs 5 € and is still 1000 times better :eek: :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top