Problem With Selection and Timers

Kenak

New Member
Reaction score
3
I've been working on a project with a friend for the past 3 weeks, and after doing to terrain and basic triggers, I need some help with the Class Selection System. Here is what I want (not what I'm requesting):

When you start, the screen is all Black and each player can press "Esc" to bring up the class menu, and "Esc" again to close it. The menu is 3 different Dialog boxes that each have 3 buttons: "Select", "Next", and "Back". Each Dialog also should have text on it to describe each of the Classes, and once it's selected it displays to each ally the name of the Class so they know which classes have been chosen so it can help them choose. Then while this is going on, a Countdown Timer starts up for 1 minute. Once all players are done choosing (before the 1 minute), the timer stops, the screen fades back to normal, and the game starts. If everybody is not done yet, and the timer gets to 0, everybody gets a Warrior.

Now what my problem is that I cannot figure out a way to make them game start when everybody has chosen their hero OR when the timer runs out. And when the timer does run out and somebody does not have a hero, they get the warrior. If somebody could give me a trigger or help me with a trigger I would greatly appreciate it!

Another problem I have is with my Dialog Box: I cannot figure out how to put text in it. I have seen it done before, but this is not nessecary, as I don't have to give a description, it just helps.

So, can anybody help me? =) Thanks ahead of time!
 

hell_knight

Playing WoW
Reaction score
126
read the tutoral to make dialogs and stuff just make another trigger set for 60 secs and then turn off the dialog trigger.
 

Kenak

New Member
Reaction score
3
You obviously did not read what I was asking, or I was not clear enough. I know how to make dialogs and if it were as easy as just having a timer end and turning off the dialog, I would have done it. I took time to word what I wanted so it would be clear, to avoid this >.<

I will quote what I want just to be even more clear =):

Now what my problem is that I cannot figure out a way to make them game start when everybody has chosen their hero OR when the timer runs out. And when the timer does run out and somebody does not have a hero, they get the warrior. If somebody could give me a trigger or help me with a trigger I would greatly appreciate it!

- I can make the dialog that creates the 3 heroes.
- I can create the timer that lasts a minute.
- I cannot figure out a way to see if a player has chosen a hero, and if all have before the timer runs out, it stops.

Understand now? You have a maximum of 1 minute to choose, and if not you get a Warrior. If everybody does choose before the time runs out, the timer stops and the game starts.
 

Kenak

New Member
Reaction score
3
I still need some help =( Sorry to double post and bump so early, but I really need this answerd soon please =)
 
M

Master_Saji

Guest
Hmmmmmm............ :(

Maybe check out the Hero Taverns Tutorial?
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
Ok so you only problem is to se when all players have choosen a hero?

Make a integer varialbe at map init do like this

Code:
Set Variable = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))

When a player choose a hero set Variable = Variable - 1 and when Variable is 0 all players has choosen there hero. Then stop/pause the timer, destroy the timer window (if any), fadeout and turn off the hero selection trigger.
 

Kenak

New Member
Reaction score
3
Thank you! I will try that right now.

EDIT: Btw, I know how to get the Dialog to work. I do not have a problem with making Dialogs and Selecting heroes. If I can get that trigger to work, it would answer my problem perfectly: Detecting if a hero has been chosen.

EDIT: How do I detect when the Variable is = 0?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> How do I detect when the Variable is = 0?

Right after subtracting 1, you add an "IF THEN ELSE", with an integer comparison as condition.
 
S

Soronius

Guest
make a trigger thatn runs every few sec and do IF the var is ... then...
 

Jazradel

Helping people do more by doing less.
Reaction score
102
Create a trigger on Map Initialization that creates a 60 one shot timer and a 1 second repeating timer.

To detect if all the heros have been chosen you would probably have to have a trigger on a repeating timer that checks if a variable(boolean) for each player(originally false but set to true when a player chooses a hero) is true. Then get it to run your game start triggers.

Have another trigger that is on a one shot timer which detects whether each player has chosen a hero or not(using the variable above) and creates a warrior if it's false. Then get it to run your game start triggers.

You game start triggers should include something that turns off the dialog triggers, the triggers above and the timers.
 
General chit-chat
Help Users
  • 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

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top