#Asap need help on making this safezone functional.

51 messages · Page 1 of 1 (latest)

dense urchin
somber breach
dense urchin
somber breach
#

alr

#

sec

somber breach
dense urchin
marble ridgeBOT
#

studio** You are now Level 1! **studio

somber breach
#

ima send the code for the outside and the code for the sword gear

dense urchin
#

Just make a basic FSM to indicate whether or not a player is inside the safe zone. Then in your combat script, make sure that both parties (attacker and attacked) are not in the safezone state. If either is then don't deal damage

somber breach
#

code for the time platforms - they detect when you're outside

#

code for the sword gear

#
  • I am quite a beginner, most of this was chat gpt usage. so if you'd care to explain what a fsm is, and how I should implement it into my code, itll be awesome
dense urchin
#

you never check the attacker's state...

#

Of course it won't check it if you don't add the check

#

Basically, check if the attacking character has that attribute

somber breach
somber breach
dense urchin
dense urchin
somber breach
#

How do I do that though

#

What should I be writing?

#

I really don't know this 💀

dense urchin
#

Mate, did you even bother to at least read into if statements?

#

If not, then just go and read into the syntax before trying to script stuff

somber breach
#

something like this? @dense urchin

woeful kiln
#

@astral steppe

somber breach
#

@dense urchin I just did what you said

#

yet still it allows someone from inside the safezone to kill who's outside

astral steppe
#

#💵︱hiring

woeful kiln
#

then check if they are in the safezone when u deal the damage

somber breach
marble ridgeBOT
#

studio** You are now Level 2! **studio

somber breach
#

like

#

nothing,.

woeful kiln
#

i never said anything about an output

#

u just check if the holder of the tool is in safezone or not

#

then dont deal damage if they are

somber breach
#

yeah they're in it yet it still does damage to someone whos outside

#

but when they're both in it it does zero damage

#

which is odd

dense urchin
#

I'll be nice. Your attribute is called "CanBeDamaged" not "IsSafeZone"

somber breach
#

but

#

I've changed it, still someone from the inside is able to kill him from the inside of the safezone :C

#

one sec

#

u might be onto something