#<SEL> things in npc_text help
1 messages · Page 1 of 1 (latest)
Its annoying to explain so just use Common_SelectYN
But SEL defines options
Ok the xq function
But how does it work
I have this explained in my VS Code extension
let me re-explain it
the signature is Common_SelectYN(string: message)
returns 1 if Yes, is selected else 0
if message is not a string, no text will be rendered
git gud
could u send me ur xq pls?
RunCmd_Map23()
{
$param0 = "Your text ?";
$param1 = 1; //Which button is selected by default (0 or 1)
$local1 = Common_SelectYN($param0, $param1);
$local2 = set_user_input_lock_state(0); // you can move again
if not $local1 goto "@000@"h;
$local2 = TeleportToIsland(); // If yes
"@000@":
// if No
}```
ty
not bad
he literally explained it 😭
also
Bruh didnt see
dont set to $param like that
do it like this
He cooked with this one
RunCmd_Map23()
{
$local1 = "Your text ?";
$local2 = 1; //Which button is selected by default (0 or 1)
$local1 = Common_SelectYN($local, $local2);
$local1 = set_user_input_lock_state(0); // you can move again
if not $local1 goto "else"h;
$local2 = TeleportToIsland(); // If yes
"else":
// if No
}
not really
should've done it like this
he wrote to $param which is well no
he could've re-used stack slots
and he used auto generated labels when unneccessary
but atleast it works
U just said not bad
yeah not bad
Brih
about yeah
it has some mistakes
but in this specific case
those mistakes wont matter
But for other things it could matter
that's like adding a hole in a blender but out of sheer luck your specific fruit blocks up the whole
yes
weird comparison but it's what I thought of
Would it matter
I don't remember your code
Wow you gave me one instruction
I understand your whole code
Bruh
Bruh anyways i will figure this out
wdym inlining?
tell me whats wrong in it pls
it'll work but
it did
you see the variables $local2 and $local3
but
instead of doing
yeah?
$local1 = "hi i'm n123";
$local1 = Menu_MessageInfoDraw($local1):
just do
$local1 = Menu_MessageInfoDraw("hi i'm n123");
does that make sense?
yeah that i know
it does
i was following this
so
$local1 = Common_SelectYN(0, "battle wondernyan (n123)");
?
is that good?
no the string goes first
ok
it's (text, defaultOption)
🥺
it's so peak
(Wondernyan)
Yes but
0 is the default anyway
so you don't need to put 0
$local1 = Common_SelectYN("Is Wondernyan Peak No = Yes, Yes = Yes");
or better yet
$local1 = Menu_MessageInfoDraw("Wonedrnyan IS peak");
dont give them a choice 🗿
ill make a wondernyan npc saying that in my mod
ill create a base id especially for him
You can just use Wondernyan's
his name will be "n123 reference"
unless you want Wondernyan S
i could make that
but
i dont know how to do for the auras
me and younes are the people closest to knowing
we just have to figure out one thing
yeah what?
that I'm too lazy to do for him
if u r lazy to do smth its bcs its like vry long
you overestimate me
unless vry long = 5mins
bros lazy for 5min
i have better if the player say no it goes back until he says yes
"bro's called @bright skiff "
the joke is that both are obviously true
😭
I wasn't making fun of you lol
its 6 for me
yeah!
got u
🍵
shit isn't it
stranger danger 🗿
jokes aside
greater london, yes, london, no
dw us british people hate our country
*5 star
W mom
it dosen't mean there are 5 stars literally
5-star is a singular adjective
a description
therefore you don't put an s
ill remember it
English is weird
yep
bcs it wasnt literally 5stars
adjectives are always singular
but yeah watch out for words like deer
which are both singular AND plural
