#How To Make It So Players Lose Health Every 3 Seconds Inside A TV

1 messages · Page 1 of 1 (latest)

carmine rampart
#

🙏

glacial river
#

Is
 this a statement?

carmine rampart
#

How To Make It So Players Lose Health Every 3 Seconds Inside A TV

carmine rampart
#

I also want a system to randomize trigger volumes(10) [different from the one that loses health] and if someone enters the wrong one (9) that die, if they enter thee right one (1) they live

glacial river
#

What do you mean by “Inside a TV”

bleak sky
#

Event receiver "Update 30Hz" > delay (3s, connect after delay to cancel input and use cancel output for next step) > for each (connect players from trigger volume) > if player is local and valid (connect player from for each output) > damage that player (i hope you have hp system)

carmine rampart
#

not a system

carmine rampart
glacial river
carmine rampart
#

😭

glacial river
#

Do you want weapons in your game?

#

If you don’t, it’s a lot easier than if you do

carmine rampart
#

yes i do

#

its also not my map

#

im a contrib

#

but i am the main circuiteer

glacial river
#

Okay, if you want weapons then you want to use a PDB for the system

#

How experienced are you with CV2

carmine rampart
#

5.7/10

#

probably

glacial river
#

Do you understand event receivers and variables?

glacial river
#

Do you know how to send events to specific players?

glacial river
#

Ok then it’ll probably be easy to understand

#

Place a Player Definition Board

#

“Edit” it and then you’ll be in it’s circuit board

#

Place an event receiver and there are new events for players like “projectile hit player”

#

And you can run a system for whenever a player gets shot

carmine rampart
glacial river
#

HP system

#

Like, you can have an int variable for their health, and whenever they get shot lower it, and when it goes to 0 you can respawn them and reset their hp, stuff like that

carmine rampart
#

hella special

#

rn

glacial river
#

You know how int Variables are local to each player?

#

Unless configured otherwise

carmine rampart
#

yh

glacial river
#

You can set that to be 100 when they join, (i. e. they have 100 HP when they join)

#

So if they are damaged, they’ll lose some of their int Variable value (losing HP)

#

Similar to how you’d use int variable for money, xp, etc, you’d use it for HP

carmine rampart
#

and then the respawn

#

bit

glacial river
#

A video I’ve never personally watched: https://discord.com/channels/193073071802941451/1272206990357037086

But it has been referenced a lot for beginners to learn CV2 PVP as opposed to CV1 game rules PVP, however if you already have “5.7/10” experience with circuits, you should be able to grasp the concept easily, but the video is always there if you need it

glacial river
# carmine rampart so its just this

Make sure you use an If Player is Local circuit for the Event Receiver: Player Joined because otherwise whenever any player joins, every player will get their HP reset

carmine rampart
#

@glacial river Ok so i did the video seems i did it right

#

how would involve shield

#

into the system

#

and what would i do with the gamechip

carmine rampart
glacial river
#

Gamechip can just be deleted

#

That’s CV1

carmine rampart
#

i dont really know a lot of cv1

glacial river
#

Is it a custom shield?

#

Or a rec room one

carmine rampart
#

regular shield pot

glacial river
#

Yeah it’d still work as long as it’s preventing the projectile from hitting the player

carmine rampart
#

would i get the local player should

glacial river
#

Shoot the shield, does the bullet go through the shield or does the shield stop it

carmine rampart
#

i think i need the game chip

#

shield wont work otherwise

glacial river
#

The game chip overrules everything else

#

It’s either one or the other

#

Are you running the damage for the attacker or the defender

carmine rampart
#

what do you mean

#

when someone shoots me

#

i take damage

#

doesnt factor in shield

glacial river
#

Does the projectile go through the shield

carmine rampart
#

you do realize im talking about actual shield right? not the prop

glacial river
#

Shield drink?

carmine rampart
glacial river
#

Oh, I thought you were talking about the held shield because I’ve never heard anyone refer to it as just shield before

carmine rampart
#

everyone i know calls it just shield

#

so...

#

do you know how to do it

glacial river
#

AFAIK, CV1 shield potions don’t work with CV2 PVP systems as they don’t have object boards like other old CV1 PVP items have gotten.

There are alternatives, such as creating your own shield potion and running it that way, or implement a different system instead of “drinking” something.

carmine rampart
#

so no cv2 pvp system?

glacial river
#

You can switch to CV1 Game Rules PVP if you want, but it’d be a lot harder to add separate ways to add damage outside of the conventional projectile that it comes with

#

, if you want the “TV damage” system, then using CV2 would be the better option, overall CV2 is the better option

carmine rampart
#

@glacial river can’t I just use a “combatant receive damage”

carmine rampart
#

Bro stopped talking

bleak sky
# carmine rampart <@780929205830680588> can’t I just use a “combatant receive damage”

nope, that thing is weird, inconvenient and doesn't work some of the time
just make your own hp system, it's easier to configure, it's more convenient and it allows you to even add some cool stuff when someone takes damage which is more complicated to do with RRO system
tutorial: https://www.youtube.com/watch?v=tZ_M_Limrbk

In this video I did a tutorial and how to create a health/damage/PVP system

https://rec.net/user/Ardenis-

#RECROOM #RR #tutorial #RR #helpful #recroomtutorial #health #healthsystem #pvpsystem #damagesystem

▶ Play video
carmine rampart
bleak sky
# carmine rampart 1. he already linked that tutorial 2. cv2 health systems dont involve shield
  1. make a secondary variable called "Shield"
  2. basically make same thing you do with HP variable but with shield variable (so you have proper system for both hp and shield
  3. connect shield variable to secondary bar using UI
  4. add a check when you damage someone:
    if (shield > 0)
    then: shield - damage > if (shield < 0) > hp + shield > shield = 0 > continue with other HP system stuff you have after reducing hp
    else: just reduce HP
carmine rampart
#

you cant check people for shield

#

when theres no game chip

#

which the game chip overides the cv2

carmine rampart
bleak sky
carmine rampart
bleak sky
carmine rampart
#

or would i have to create a system only certain people can access and they can input the amount of shield they want

#

and it would set their variable

bleak sky
#

about the whole "getting a value" i don't really know that much about that

#

but its something to do with promts

#

to set a shield variable to something just do this:
if player is local and valid (player is the one you're giving shield to) > shield = [some value you want]

carmine rampart
#

i know how to do it

#

i was just asking if it would work

bleak sky
#

if you have your own systems it's only up to you if it'll work

#

thats the biggest benefit from making your own HP system

carmine rampart
#

@bleak sky so like i would have to spawn in my own guns

#

?

#

oh wait

bleak sky
carmine rampart
#

i could make the game chip auto heal instantly

#

so it doesnt interfere

#

so guns could still spawn

#

normally

bleak sky
#

if you have your own hp system you can make a death and respawn systems

#

player made systems usually don't touch RRO systems unless you spawning someone with a gun

#

so just ignore RROs stuff unless you need them to do something

carmine rampart
#

i had a system but it was majorly un optimized

bleak sky
carmine rampart
#

i was going to originaly tp them but i though just them turning evil/good would be better

bleak sky
#

oke then

#
  1. on each trigger volume just do this: event receiver "Update 30Hz" > delay (1s, connect after delay to cancel input and use cancel output for next step) > if (trigger is good) else > for each (players in that volume) > if player is valid and local > damage them
  2. pick a random volume from that list (switch integer with random int connected to it)
  3. set every bool to false
  4. set the correct one to true ( random int (from 1 to your trigger amount > execution integer switch (add values to compare from 1 to amount of your triggers) > connect each variable to a different output of that switch and set all those variable to true) (example on screenshot below)
bleak sky
#

should work but test it and fix if there's problems

carmine rampart
#

@bleak sky i dont think youre understanding what TV im talking about

#

so theres a total of 11 TV

#

1 main one that damage players that are inside of it and theres 10 hallways and at the end of each theres a TV

#

only 1 lets them escape the room

#

and the other 9 kills them

#

your step 1 deals with the main TV (already knew how to do it though)

bleak sky
#

oh,

#

then it's much easier
you do the random thing from step four and if the trigger volume is bad then you deal 9999 damage to the player
On trigger player enter > if player is local and valid (connect player form player enter)> if (trigger volume is good) else > deal 999 damage to player

sturdy fiber
bleak sky
#

it's the safest and easiest option

sturdy fiber
#

Safest? No.

#

Again, lag spikes.

bleak sky
#

which aren't that big

sturdy fiber
#

No they can get very large.

bleak sky
#

it depends on what you activate with those tbh

sturdy fiber
#

No it doesn't.

#

It depends on how many delays you're building up then canceling, because clearing a bunch of delays causes lag.

#

Especially when you're adding 30 a second.

bleak sky
#

oh

sturdy fiber
#

Just make a cooldown function or circuit board, they're simple to make.

#

The function only costs 2 chips too, plus the 5 needed to make the function definition.

carmine rampart
sturdy fiber
carmine rampart
#

ye

#

mine though

sturdy fiber
#

What chips does it use?

carmine rampart
#

30 hz, divide, greater than, if

#

and an event

#

to send the hz

sturdy fiber
#

That's not enough chips to make a cooldown, could you send an image of it?

carmine rampart
#

i dont even know whatchu was talking abt

#

😭

sturdy fiber
#

What

#

You said you have a custom hz, I'm asking you to send an image of it, because the way you described it doesn't make sense.

carmine rampart
#

the event probably isnt needed

sturdy fiber
#

None of that is needed

#

It's still using a delay cancel too

carmine rampart
#

wait

#

nvm

sturdy fiber
#

I'll send an image of both a cooldown circuit board, and a cooldown function. I'd suggest using the function.

#

Again, I'd suggest using the function. It only costs 5 chips to make, and every use of it only costs 2 chips. Compared to the circuit board's constant 5 chips, the function is better if you have multiple cooldowns.

carmine rampart
#

be a 30hz?

#

or what would i do with this

#

also what would i put the CD as

sturdy fiber
#

Isn't this for contantly damaging players every 3 seconds they're in a trigger volume?

carmine rampart
#

yes

sturdy fiber
#

If so, then you know long the cooldown should be.

#

So just contantly check if they're in a trigger volume, and if they are, use the cooldown to damage them.

carmine rampart
#

alright thats done

#

@sturdy fiber so its damaging other people

#

when they're not inside of it

sturdy fiber
#

Ok?

#

So you set up the damage wrong then

carmine rampart
#

fixed it with a event

carmine rampart
#

new problem

#

your cooldown is activating twice

sturdy fiber
#

I don't know how you set up any of the circuits, so I am unable to help.

carmine rampart
sturdy fiber
#

What is this

carmine rampart
#

stuff

sturdy fiber
#

What even is the goal here

#

Like, what

carmine rampart
#

5 damage per 3 seconds

#

when people in TV

sturdy fiber
#

How does the circuits you sent above help at all with that

#

those are terrible

carmine rampart
#

😭

#

it does it fine

#

its the cooldown

sturdy fiber
#

Are there multiple people in the room?

carmine rampart
#

yh my alt

sturdy fiber
#

So everone is telling everyone in the trigger volume to damage themselves?

#

Do you not see the issue with that?

carmine rampart
#

?

sturdy fiber
#

If everyone is telling everyone in the trigger volume to damage themselves, what do you think will happen if there are 2 people in the room and 1 person is in the trigger volume?

#

Everyone tells the person to take damage.

carmine rampart
#

oh

#

so how fix

sturdy fiber
#

Just check if the local player is in the trigger volume, if so, damage using the cooldown.

#

There's a List Contains chip, use that on the Trigger Volume's player list.

#

If so, then run the cooldown to damage the local player.

carmine rampart
#

do i get rid of anything i had

#

?

sturdy fiber
#

All of it yes.

carmine rampart
#

đŸ˜±

sturdy fiber
#

Just make what I described.

carmine rampart
#

👍 completely fixed

sturdy fiber
#

Cool, do you want to send an image of the circuits just to make sure they'll work?

carmine rampart
#

also do you know why i have to put the variable inside the circuit board

#

if its not in the circuit board it doesn display my actual health

sturdy fiber
# carmine rampart

Yeah that'll work. Keep in mind you don't need the Get Local Player chip, the player port is auto made for you.

carmine rampart
#

in board

sturdy fiber
#

Why is the player health in a circuit board?

carmine rampart
#

cuz

sturdy fiber
#

This all depends on your health system.

#

Variables inside of circuit boards are seperate from any other variables you have, even if they're the same name and type.

carmine rampart
#

thats stupid

#

frfr

sturdy fiber
#

Nuh uh

#

That's just how circuit spaces work.

#

I'm actually in game right now, I could join and help further if you wanted

carmine rampart
#

@ReconBlaze

carmine rampart
#

@bleak sky i really dont understant the randomization of the trigger volumes

bleak sky
#

All bool variables have to be synced

#

To activate random trigger just activate the random int

#

Before that set all of those bools to false so u wont get 2 good triggers

carmine rampart
#

@bleak sky if you ever get on could you do it and send me a picture. I learn alright from pictures

carmine rampart
#

so like

#

i feel

#

this could be optimized

#

how

bleak sky
#

it looks optimized enough tbh

glacial river
# carmine rampart

You could do an event for trigger volumes, and set each of their tags to be the corresponding number so you only need one sender

carmine rampart
glacial river