#i need some help

1 messages · Page 1 of 1 (latest)

sonic kestrel
#
  set {blood::%uuid of victim%} to location of victim
  if {blood::%uuid of victim%} is air:
    set {blood::%uuid of victim%} to red carpet
    wait 30 seconds
    if {blood::%uuid of victim%} is not air:
      set {blood::%uuid of victim%} to air```
whole pond
#

you need to do set block at {_loc} to red carpet

sonic kestrel
#

mb g

sonic kestrel
whole pond
sonic kestrel
#

ty

sonic kestrel
#
  set {_loc} to location of victim
  if {_loc} is air:
    set block at {_loc} to red carpet
    wait 30 seconds
    if {_loc} is not air:
      set {_loc} to air```
whole pond
#

do you need this variable: {blood::%uuid of victim%} for future use?

sonic kestrel
#

doesnt work as this either

#
  set {blood::%uuid of victim%} to location of victim
  if {blood::%uuid of victim%} is air:
    set block at {blood::%uuid of victim%} to red carpet
    wait 30 seconds
    if {blood::%uuid of victim%} is not air:
      set {blood::%uuid of victim%} to air```
whole pond
#

alr good

sonic kestrel
#

i just made up a variable

whole pond
#

okay give me a second

#
  if block at location of victim is air:
    set block at location of victim to red carpet
    wait 30 seconds
    if block at location of victim is not air:
      set block at location of victim to air```
sonic kestrel
#

okay let me test

sonic kestrel
odd sandal
#

Cause the victim has moved in that 30 seconds

#

So when you are setting the block at location of victim the second time it is not checking for the red carpet but the victims location

#

You have to set a variable with the location of the red carpet

sonic kestrel
#

how would i do that?

odd sandal
#
  if block at location of victim is air:
    set block at location of victim to red carpet
    Set {_loc} to location of victim
    wait 30 seconds
    if block at {_loc} is not air:
      set block at {_loc} to air```
#

Something like this

#

I’m on my phone so there might be some typos

sonic kestrel
#

ill see

#

however

sonic kestrel
odd sandal
#

If you just want 1 carpet per death it will work

sonic kestrel
#

yes but there are multiple players dying

odd sandal
#

Local variables don’t carry over to other events

sonic kestrel
#

okok thank you

odd sandal
#

{_example} this is a local variable

#

{example} this is a permanent variable

#

Permanent variables carry over to other events, local variables do not

sonic kestrel
#

ok thang you very much

odd sandal
#

You’re welcome 👍 did it work?