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 Image 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 Image 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.
Hope for the best, yet expect the worst.
User avatar
mrnat444
Usurpation Soldier [50]
 
Posts: 73
Joined: 16 October 2013, 00:51
Location: PB2

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!
Forgotten days, a fading memory...
User avatar
LoneWolf56
Cyber Grub [25]
 
Posts: 42
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. When I tested that, it gave inconclusive results. First it lagged the game and gave no response at all (I had it set to give a response if I said anything in the chat), but then when I tested to see if the player-initiator action type I was using was bugged, both it and player-initiator apparently started working.

basically, chat commands might work, but I'm not sure.
Hope for the best, yet expect the worst.
User avatar
mrnat444
Usurpation Soldier [50]
 
Posts: 73
Joined: 16 October 2013, 00:51
Location: PB2

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
Noir Lime [600]
 
Posts: 622
Joined: 23 January 2015, 02:01
Location: Just look behind you.

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
http://www.plazmaburst2.com/?s=2&map=darkstar%201-pixels
User avatar
darkstar 1
Proxy [700]
 
Posts: 792
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
Image
User avatar
Build
Usurpation Soldier [50]
 
Posts: 72
Joined: 27 February 2018, 18:18
Location: Australia


Return to Tutorials

Who is online

Users browsing this forum: No registered users