#fly key

1 messages · Page 1 of 1 (latest)

wary dragon
#

fly key

teal oar
#

This is a bad way to format a help post.

wary dragon
#

MY BAD

#

oops

teal oar
#

Please include what you need help with.

wary dragon
#

all capos

#

what i have set up is not functioning right

teal oar
#

On player join, check if the player that joined is local.

#

And for the Room key purchased, you only need 1 event receiver for this, then convert the key to a string and use a string execute switch. The inputs on the switch should be the exact name of the key.

wary dragon
#

how do i check if the player that joined is local?

teal oar
#

If Player is Local chip.

wary dragon
#

like this?

teal oar
#

Yes.

wary dragon
#

what now?

teal oar
#

Do what I said for Room Key purchased

wary dragon
#

what chip do i need for this?

teal oar
#

I said.

#

For Room key purchased, you only need 1 event receiver for this, then convert the key to a string and use a string execute switch. The inputs on the switch should be the exact name of the key.

wary dragon
#

yes but which string chip is needed?

teal oar
#

What

#

I said, use a String Execute Switch

#

It's a chip.

wary dragon
#

this chip?

teal oar
#

Yes, configure it to add string inputs. They should be the EXACT name any key you want an execute for.

wary dragon
#

both values?

teal oar
#

That below one is just an input you've already made

#

You can change their names after you create them

#

You just need to input the ones you need executes for

#

The chip sees if the input string matches any of those names, if so it executes out its port.

wary dragon
#

like this? or did i mix it up

teal oar
#

Again, convert the room key on the event receiver to a string and connect that to the Execution String Switch's input string.

wary dragon
#

what do you mean by convery the room key to a string?

teal oar
#

Use a To String chip.

wary dragon
#

so the result goes where?

#

to "match" ?

teal oar
#

Yes

wary dragon
#

and from there what do i do?

teal oar
#

Should be good now

wary dragon
#

like this?

teal oar
#

Wire the execution from the Room Key Purchased to the Execution String Switch

#

Also you can wire the Room Key on the Room Key Purchased to the Player Owns Room key's Room Key input instead of using the extra Room Key chip.

wary dragon
#

so this?

teal oar
#

Yup

wary dragon
#

so it knows which room key was bought?

teal oar
#

Yes, because you convert it to a string, and then check if it matches anything in the String Execution Switch.

wary dragon
#

alright

#

so if i put any key in here, itll check for that specific key out of the execute?

teal oar
#

If you input its name yes.

wary dragon
#

alright, i appreciate it, thanks