Sanity Percentage Help

Hi, I need help making a sanity system for my horror game, that increases when you are near others, decreases when far away and out of safe zones, and increases In safe zones.

1 Like

I don’t think the player part would be possible
for the safe zone, I would use a True/False property that turns to false when you leave and true when you enter

1 Like

it could be, just with tag zones and a little block code.

2 Likes

You should probably use player coordinate devices to locate where players and zones are.

1 Like

Here:

First, get a counter. This will be incremented and decremented and update property “sanity”

Second, we’ll do when you’re close to others. Have 6 tag devices (the max), and disable automatic respawn. Instead, wire “when player gets tagged” to the counter, incrementing it.
Note: This only works with a max of 6 players. You’ll have to pseudo-tag if you want this to work with more people.

Third, we want to do it near safe zones. I’d just use zones, and make it in different levels. By using multiple zones and a property, we can tell which part of the zone they are in. See my old storm guide to use this system. This can broadcast to a repeater that increments the counter, and when you’re far away, that repeater deactivates.

Fourth, sanity going down. Your sanity will always be going down (like mine), so just have a lifecycle → relay (all players) → repeater → counter (decrement).

Bonus: You can add a target of zero on the counter, so when they reach a sanity of 0, they get switched to spectator, or something.

3 Likes

This might thelp!

3 Likes

sorry for the late reply, I’m not as active on weekends. however
when the player is near other players I want the sanity meter to constantly increase until they are too far. the tag zones dont do this sadly.

1 Like

Alright well then you’ll have to use pseudo-tagging with a long range. Use the guide @GKCCreator49 conveniently posted earlier.

2 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.