Saying Player Name Trigger

Farplane

New Member
Reaction score
8
So, I'm basically making a Who is the Killer game, and instead of using circles of power to record votes, I want the players to type in the name of the player they think is the "killer", and if they get it wrong, they will be defeat. I can pretty much only get halfway through this trigger, because I can't find a way to make sure they only typed once. I've been searching for a trigger like
Events
A player types a chat message

Conditions
Chat message is equal to Name of Killer(variable)

However I can't find a proper method. Does anyone know how I could pull this off?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Typing names is not that great an idea... when you have someone with "Iown3rS!!1" or worse.
Instead, I'd suggest to use a "-solve" (or whatever) command, that pops up a dialog with all names (except yours?).


As for the remembering, create an array of type boolean, size 12, with "false" as default.
If the player tries to solve, check array[Player number of (Triggering player)].
If it is still false, it's ok.
Set it to true once he replies to the dialog.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
All i can think of is to do this event for all player typing all other player's names=(
Code:
Player - Player 1 (Red) types a chat message containing (- + (Name of Player 1 (Red))) as An exact match
 

Farplane

New Member
Reaction score
8
Alright, I think I got the dialog box down, feels good to finally have that off my chest. If anyone sees an error or leak please let me know.
Code:
Events
    Time - Elapsed game time is 16.00 seconds
Conditions
Actions
    Dialog - Clear Playerdialog
    Dialog - Change the title of Playerdialog to The demon is...
    -------- Buttons --------
    -------- Red --------
    If ((Player 1 (Red) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 1 (Red))) else do (Do nothing)
    If (Player 1 (Red) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerred = (Last created dialog Button))
    -------- Blue --------
    If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 2 (Blue))) else do (Do nothing)
    If (Player 2 (Blue) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerblue = (Last created dialog Button))
    -------- Teal --------
    If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 3 (Teal))) else do (Do nothing)
    If (Player 3 (Teal) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerteal = (Last created dialog Button))
    -------- Purple --------
    If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 4 (Purple))) else do (Do nothing)
    If (Player 4 (Purple) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerpurple = (Last created dialog Button))
    -------- Yellow --------
    If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 5 (Yellow))) else do (Do nothing)
    If (Player 5 (Yellow) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playeryellow = (Last created dialog Button))
    -------- Orange --------
    If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 6 (Orange))) else do (Do nothing)
    If (Player 6 (Orange) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerorange = (Last created dialog Button))
    -------- Green --------
    If ((Player 7 (Green) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 7 (Green))) else do (Do nothing)
    If (Player 7 (Green) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playergreen = (Last created dialog Button))
    -------- Pink --------
    If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 8 (Pink))) else do (Do nothing)
    If (Player 8 (Pink) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerpink = (Last created dialog Button))
    -------- Gray --------
    If ((Player 9 (Gray) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 9 (Gray))) else do (Do nothing)
    If (Player 9 (Gray) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playergray = (Last created dialog Button))
    -------- Light Blue --------
    If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 10 (Light Blue))) else do (Do nothing)
    If (Player 10 (Light Blue) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerlb = (Last created dialog Button))
    -------- Dark Green --------
    If ((Player 11 (Dark Green) slot status) Equal to Is playing) then do (Dialog - Create a dialog button for Playerdialog labelled (Name of Player 11 (Dark Green))) else do (Do nothing)
    If (Player 11 (Dark Green) Equal to Killer) then do (Set playerkiller = (Last created dialog Button)) else do (Set playerdg = (Last created dialog Button))
    -------- Show Dialog --------
    Player Group - Pick every player in (All enemies of Killer) and do (Dialog - Show Playerdialog for (Picked player))

By the way, "Killer" is the variable of the player who owns the killer unit.
Sorry for huge trigger.
 

Romek

Super Moderator
Reaction score
964
You could use a loop instead of repeating all those functions :p
 

Farplane

New Member
Reaction score
8
Normally, I would create a new thread, but I am able to realize how I create to many threads, often dealing with the same map. Plus, this is just a little help.
My map is almost complete. I'm currently looking for a good song that could set the atmosphere of my killer map.
Preferably..
-Fitting a dark forest scenery (specifically Felwood)
-Horrorish, while not being corny, like a scary movie
-A little ambient, while mainly having eerie instruments (piano, violin)
-Noticably freaky while not getting too in the way of the game
-Relativly small filesize, loops are okay

So, if anyone has a good song, loop, or source for this type of music, I'd be really grateful if you could share it, because I'm trying to map a killer map that's actually remotely scary.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • 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 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