How to make player-specific trigger actions

Tutorials and guides for Plazma Burst and community features.

How to make player-specific trigger actions

Postby mrnat444 » 25 August 2017, 22:44

This is a guide on how to make trigger actions that only appear executed for certain players (e.g. text only popping up for one person, like a "private message").

Firstly, You will want to use with the desired variable (you can leave parameter B as 0) on a trigger, it only has to execute once.

Then, on another trigger, use with the variable in parameter A and specified player slot in parameter B to limit the action types below it. Also, the player slots go as 0, 1, 2, etc. so the number will always be one less than the slot number.

You can use this to make private chat messages only seen by (a) certain player(s), changing gravity for everyone except for one player, etc. But note that it must target specific people, so if you want it to be able to favor player-initiator, you will have to create another system so it can change the slot it must equal depending on who presses the button.
Last edited by mrnat444 on 11 June 2018, 02:59, edited 1 time in total.
User avatar
mrnat444
Usurpation Soldier [50]
 
Posts: 70
Joined: 16 October 2013, 00:51

Re: How to make player-specific trigger actions

Postby LoneWolf56 » 3 December 2017, 06:03

Does player initiator only work when the player pushes a button, or will it work in cases like:

Player enters a region linked to a trigger
Player fires a gun linked to a trigger
Player types a command that activates a trigger
Player with a 'Trigger on Death' dies

Thanks!
User avatar
LoneWolf56
Usurpation Soldier [50]
 
Posts: 55
Joined: 20 December 2015, 05:07

Re: How to make player-specific trigger actions

Postby mrnat444 » 3 December 2017, 08:13

LoneWolf56 wrote:Does player initiator only work when the player pushes a button, or will it work in cases like:

Player enters a region linked to a trigger
Player fires a gun linked to a trigger
Player types a command that activates a trigger
Player with a 'Trigger on Death' dies

Thanks!


Yes I believe it works with all of those, except for when a player types a command in chat. There is another action which sets a variable value to the slot/login name/displayed name of the player who most recently entered a message in the chat.
Last edited by mrnat444 on 8 August 2018, 04:04, edited 1 time in total.
User avatar
mrnat444
Usurpation Soldier [50]
 
Posts: 70
Joined: 16 October 2013, 00:51

Re: How to make player-specific trigger actions

Postby wreak » 1 January 2018, 01:58

I can't find "Set value of variable A to slot of current player." I searched for it the vars section but I can't find anything.
wreak
User avatar
wreak
Civil Security Boss [500]
 
Posts: 577
Joined: 23 January 2015, 02:01

Re: How to make player-specific trigger actions

Postby darkstar 1 » 1 January 2018, 11:43

wreak wrote:I can't find "Set value of variable A to slot of current player." I searched for it the vars section but I can't find anything.

In the list with 'old' var trigger actions you should find some character trigger actions, 4 places above these you should find the one you search



User avatar
darkstar 1
Proxy [700]
 
Posts: 712
Joined: 13 September 2014, 13:20
Location: Here... or there :|

Re: How to make player-specific trigger actions

Postby Build » 29 June 2018, 04:01

can someone make that in the map
and open source please :D
because i don't know how to make variables
User avatar
Build
Falkok [250]
 
Posts: 275
Joined: 27 February 2018, 18:18
Location: Backrooms


Return to Tutorials

Who is online

Users browsing this forum: No registered users