How to change health of the players in region "A"

Tutorials and guides for Plazma Burst and community features.

How to change health of the players in region "A"

Postby Marxe » 3 December 2016, 13:39

I cannot quite remember where I have seen this trigger system in use. I was wondering how it works and recently I've found out how. It's not really hard to do if you're an advanced level developer. Follow these steps:

1) Create a covered zone with walls or doors. Picture: http://prntscr.com/det4ae
2) Place any sized region inside of this zone and name it #god_room*1. Picture: http://prntscr.com/det4xi
3) Create a trigger and name it #health_booster*1. Set max calls of this trigger to [infinite]. Picture: http://prntscr.com/det5t6
4) Put 8 players. Picutre: http://prntscr.com/det7s9
5) Create 8 regions (1 region for every player). Name them #player_check*((1-8). Picture: http://prntscr.com/det9bi
6) Create a region and name it #region_reset*1. Place it inside of the wall or somewhere far from the place that players can reach (for example - underneath the map). Picture: http://prntscr.com/detaj
7) Create a timer and name it #timer*1. Picture: http://prntscr.com/detbfy
8) Let's edit trigger #health_booster*1 this way: http://prntscr.com/detc8b
9) Create a trigger and name it #health_booster*2. Picture: http://prntscr.com/detcsg
10) Let's edit timer #timer*1 this way: http://prntscr.com/detd11
11) Create a trigger and name it #boost*1. Picture: http://prntscr.com/detdpt
12) Repeat step 11 for every remaining player and name those triggers respectively #boost*(2-8). Picture: http://prntscr.com/detexz
13) Create a timer and name it #timer_alt*1. Picture: http://prntscr.com/detftt
14) Repeat step 13 for every remaining player and name those timers respectively #timer_alt*(2-8). Picture: http://prntscr.com/detgko
15) Let's edit #timer_alt*1 this way: http://prntscr.com/detgzz
16) Repeat step 15 for every remaining timer. Picture: http://prntscr.com/dethv5
17) Let's edit trigger #boost*1 this way: http://prntscr.com/detika
(Note: Use "Continue execution of this trigger only if tracing from center of Region 'A' to center of Region 'B' is possible" as trigger's 2nd action.)
(Note: Use "Set character 'A' current and max hit points to value 'B'" as trigger's 3rd action)
18) Repeat step 17 for every remaining player. Picture: http://prntscr.com/detknj
(Note: parameter 'B' of trigger's 2nd action remains untouched. It's #god_room*1 everywhere.
19) Let's edit trigger #health_booster*2 this way: http://prntscr.com/detltl
20) The system is almost done. Now just create an activation region which will start the whole process. Name it #start*1 and edit it this way: http://prntscr.com/detmjy

In the end, if someone presses the button inside of covered zone his health will be set to 999999999.

The only question is how will the player get inside? The answer is as simple as banana - create a teleport which can deliver players inside and outside of the covered zone. Alternatively you can change the wall placement like this http://prntscr.com/detoao

Also, there is a bug. When you send the regions #player_check(1-8) to players these regions go underneath their legs and subsequently sometimes this makes tracing from regions #player_check(1-8) to region #god_room*1 impossible. To fix it use this trigger action http://prntscr.com/detqun. It will move regions #player_check(1-8) sightly higher and make tracing to region #god_room*1 possible. Alternatively you can put a pusher on the ground so the players will be levitating in the covered zone - http://prntscr.com/detrw1

You can use this trigger system to change player's speed, armor, blood color too.

If you have any questions or if you have found a mistake in my tutorial please let me know.
User avatar
Marxe
Recruit
 
Posts: 11
Joined: 28 November 2016, 17:51

Re: How to change health of the players in region "A"

Postby Civil-Lite » 14 December 2016, 02:23

Woah, thats kind of a neat tutorial actually. I like it. (No go do a tutorial on Region B ;P )
User avatar
Civil-Lite
Janitor
 
Posts: 550
Joined: 30 January 2015, 02:44
Location: Searching your feelings...

Re: How to change health of the players in region "A"

Postby mikey schmidt » 14 December 2016, 04:24

dear god, this tutorial makes me dizzy
but i dunno if i will try it

pretty good btw
User avatar
mikey schmidt
Usurpation Soldier [50]
 
Posts: 80
Joined: 25 April 2016, 01:00


Return to Tutorials

Who is online

Users browsing this forum: No registered users