Need help for player-initiator trigger issue

A place for Level Editor Tutorials

Need help for player-initiator trigger issue

Postby Princess Striker » 29 March 2023, 07:05

I'm still exploring the function of the more complex triggers for player-initiator. I've tried to search for the related tutorials for the same issue, but to my disappointment, I found nothing that really helps. Currently, I faced an issue where I created a player initiator trigger for a multiplayer map :

First I created a nickname for Player#1,

Then I created another trigger linked to a button :

1) Set value of variable 'A' to player-initiator slot
Para A: player-initiator
Para B: N/A

2) Set value of variable 'A' to slot of current player
Para A: presser
Para B: 0

3) Continue triggers actions executions if variable 'A' equals variable 'B'
Para A: player-initiator
Para B: presser

4) Show text 'A' in chat with colour 'B'
Para A : player-initiator press the button !
Para B : EXOS

Now, I get the result that when Player#1 pressed the button, it shows the text that '0' press the button! , which I understand it means '0' for player 1, '1' for player 2, and so on, but how do I change the '0' to the nickname I set by another trigger?

Princess Striker
 
Posts: 3
Joined: 10 July 2017, 07:34

Re: Need help for player-initiator trigger issue

Postby alj99 » 1 April 2023, 02:01

There's as mistake, you assumed that the command that stores player initiator stores their nickname, which it doesn't. It stores player slot (value from 0 to
max amount of players - 1). I could tell you the implications of it but that doesn't matter right now.

To answer your question, there's a separate command that grabs the nickname or login name of a player initiator to variable a.
I'm going off of my memory here, just search word nickname or just name, you'll find the command you need.

If you need more help, I guess I can, this is in my realm of interest. There's not a lot of players left that knows this stuff in the community.
Hello.
User avatar
alj99
Advanced Usurpation Soldier [150]
 
Posts: 168
Joined: 8 April 2014, 12:01

Re: Need help for player-initiator trigger issue

Postby Princess Striker » 3 April 2023, 02:45

Thank you alj99 for your advice, but same as before, I checked all the commands and got no idea about how to store the player's nickname into the variables, since what I think is nickname = displayed name of the player. Based on what I read on other forums, I don't think that displayed name triggers will work on a multiplayer match. So, can you kindly please create a tutorial map about this or just name the trigger actions I need to perform? :sorry: Many thanks!

Princess Striker
 
Posts: 3
Joined: 10 July 2017, 07:34


Return to Level Editor

Who is online

Users browsing this forum: No registered users



cron