#how can you convert a string to a destination room

1 messages · Page 1 of 1 (latest)

fluid compass
#

exection string switch

#

and just clone it a bunch

twin basalt
#

Value string switch

fluid compass
#

wtf is a value string switch

#

That just sounds like a bootleg execution switch

twin basalt
fluid compass
#

that.. wouldnt work?

fiery pawn
#

@ebon sedge to string supports destnation room

fluid compass
#

oh yea it would

twin basalt
fiery pawn
#

But convert string to destnation room is not possible but I hope they add that

twin basalt
#

Ohh

#

U mean like parse destination

#

Ya

charred juniper
#

Use a Value Integer Switch

#

It’s much easier then the rest

#

If you would like I can give a little explanation

twin basalt
fluid compass
#

they both work fine so it does not matter a single bit

twin basalt
#

He's using string

charred juniper
fluid compass
charred juniper
fiery pawn
# twin basalt U mean like parse destination

I actually didn't understood the thread well, you can convert destnation room to string to output the room name and subroom name, but you can't at all parse destnation. Value int switch like what others here said is good solution imo

charred juniper
#

Ever heard of a REAPONSE INDEX

fluid compass
#

IT DOES NOT MATTER

#

SAME CPU

#

SAME NET

charred juniper
#

NO

#

ITS NTO

#

SHUT UP

#

USE A VALUE INEGER SWITCH

twin basalt
fluid compass
#

ITS THE SAMEEEE

iron stump
twin basalt
#

Value string or value int .
Same concept same CPU

charred juniper
iron stump
fluid compass
#

a switch is a switch is a switch

charred juniper
# iron stump Yeah this or string

If you ever change the list create your gonna have to change the value string switch but if you use a value integer switch you’ll never have to change anything

#

Integer switch takes less cpu and net

fluid compass
#

it does not

twin basalt
twin basalt
#

Same CPU same net

iron stump
#

I use string to decode and recode a lot of stuff

charred juniper
#

You can use either one, but for most cases it’s better and easier to use a value int switch

#

Especially for what he’s doing now

twin basalt
#

Setting a synced variable causes net usage

#

As it sets a variable to everyone or over The internet

fluid compass
#

the thing is
When I look at the switch and I see "cave subroom" vs "4"
I think im gonna know which is which right after looking

#

You gotta add inputs lol

charred juniper
#

@ebon sedge

  1. Use a value integer switch and connect the DATA output into the destination input in then go to room
  2. configure the value int switch and add two inputs 0 and 1 (this is because list start form 0 and go on from there)
  3. connect two destination constant to the values on the integer switch
  4. connect the on prompt completion to the go to room
fluid compass
#

like that

#

but replace the vectors with desination room constants

charred juniper
#

@fluid compass Istg if you don’t stfu

#

and give people the right information

fluid compass
#

I literally just did

#

wtf are you talking abt

fluid compass
#

My picture is literally a picture of what you said einstein

#

i have no idea what youre mad at

charred juniper
fluid compass
#

its not my image

#

I used sm1 elses

charred juniper
#

Then use a good image

fluid compass
#

genius

charred juniper
#

🤫

fluid compass
#

Maybe try learning to read before jumping to conclusions

twin basalt
#

Exactly

charred juniper
#

@ebon sedge Just know it’s much more convenient to use a value integer switch instead of a value string switch (in this case)

fluid compass
#

It could not matter less
like say you wanted to parse a whole number string
both float and int work

#

do whatever you feel like kirito

twin basalt
#

Value Intregar Switch both have the same purpose
comparing the match input to the configured values hence outputting the value accosieted To the configured value if they're equal if the system has not found a match it outputs the "default" input
Except value intregar switch has the match input of an int and value string switch is the same except a string instead of int
Same CPU same NET use what u like and it doesn't matter what u choose

twin basalt
#

Ur liking

#

Actually string is more convenient since u can turn anything into a string

#

Using "to string"

charred juniper
#

NO stud

fluid compass
#

If you were to look at a switch and it says "CaveSubroom" vs "2"
which is easier to understand
both have pros and cons

charred juniper
#

For what he’s trying to do value integer switch is better

twin basalt
#

I'm waiting

charred juniper
ebon sedge
#

cv2 debate? 🍿

charred juniper
#

Stfu

twin basalt
fluid compass
#

THEY BOTH WORK FINE
both have pros and cons equally

charred juniper
#

All im saying is it’s much better to use a value integer switch in this case

fluid compass
#

actually int is better if the string is like
"The Depths of Hell In Azortah"
No way in hell im typing all that more than once

#

but if it was "mines"
then its equal

charred juniper
#

I could care less for what your talking about

#

Unless it’s for helping the OP

#

I’m right

#

I could care less anymore

fluid compass
#

Damn honestly if you could read for more than your 2 second attention span you would see im agreeing with you
but now I dont wanna

twin basalt
#

** everyone** is right in their opinion

ebon sedge
#

well, instead just arguing each other, my advice is just give your method first, and then the other will give their method second, and thats it.

fluid compass
#

no
wait yes
im blind

charred juniper
#

Yea

#

connect the response index

#

into the match

#

and the on prompt completion to the go to room

twin basalt
#

Do u know what is response index

ebon sedge
#

so share each others ideas.

fluid compass
#

0, 1, 2

charred juniper
#

no

#

Lists are order from 0 an onwards

twin basalt
#

It's sorts the items in the list so the first item in the list is 0

#

Second is 1

#

Ect

charred juniper
#

send a pic now

twin basalt
#

So if the index is 0 u chose the first option

#

Plug the right destination constant to 0 if u want the player to go to that room if they chose the first item

#

Nice u got it

#

Its always better to make the person. Understand instead of copy and paste

#

Tell me if there's problems

#

I got confused nvm

#

It's right