プレイ日記
klonoa hellkolbod
and sb is glitched because 0:39 doesn't have ether of those nor a input command any ideas on how to fix this also for those who have been helping me i did some major recoding because i'm new and i found an easy way to do it
1そうだね
プレイ済み
返信[1]
親投稿
ЩMr.Mo14 mr.mo14
is 39 the end of your code? if so, that error is because you didn't end a repeat loop, and SB expects an 'until' before the end of the code.
1そうだね
プレイ済み
返信[2]
親投稿
ЩMr.Mo14 mr.mo14
if not, send a bug report to SmileBoom
1そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Provide a download key.
1そうだね
プレイ済み
返信[4]
親投稿
klonoa hellkolbod
ok so i did that and idk if i messed up the cut off or something but now there's a non-exiisting 0:41
0そうだね
プレイ済み
返信[5]
親投稿
*J.P.*[P]£ aj2003aj
or show us the code.
0そうだね
プレイ済み
返信[6]
親投稿
klonoa hellkolbod
here's the code
0そうだね
プレイ済み
返信[7]
親投稿
OlOOlOOl pi_r_round
IF "Explore" THEN ... what kind of syntax is that? Should be something like IF A$=="Explore" THEN
1そうだね
プレイ済み
返信[8]
親投稿
*J.P.*[P]£ aj2003aj
its supposed to REPEAT Something UNTIL (whatever happens) so the 41st should be UNTIL or you can put it anywhere, but its trying to tell you that UNTIL should be in or near the end.
1そうだね
プレイ済み
返信[9]
親投稿
klonoa hellkolbod
reason why i dont have a$==blah blah is because i tried that once and it triggered a really weird bug that sends one response from one question cuts it then transfers it to another
0そうだね
プレイ済み
返信[10]
親投稿
*J.P.*[P]£ aj2003aj
and you need to be using input, or make a choise bar
0そうだね
プレイ済み
返信[11]
親投稿
klonoa hellkolbod
how do i make a choice bar (and here comes people sighing in 3...2...1)
0そうだね
プレイ済み
返信[12]
親投稿
*J.P.*[P]£ aj2003aj
an easy way to do it would be like, LOCATE 1,1PRINT "go inside(A)" LOCATE 1,3 PRINT "run away"
0そうだね
プレイ済み
返信[13]
親投稿
*J.P.*[P]£ aj2003aj
oops sorry wasnt done writing that.. then like, IF BUTTON() AND #A THEN GOTO @(label name) IF BUTTON() AND #B THEN GOTO @(label name)
0そうだね
プレイ済み
返信[14]
親投稿
*J.P.*[P]£ aj2003aj
that would be the easyest way, or most simple way, just put a cls at the begining of each story parts loop.
0そうだね
プレイ済み
返信[15]
親投稿
klonoa hellkolbod
ok so modifing some of the old code here so it works is this the right way to do it
1そうだね
プレイ済み
返信[16]
親投稿
ЩMr.Mo14 mr.mo14
Your Variable names (Like 'a') should never be enclosed in parenthesis. otherwise it is treated like (and is) a string.
1そうだね
プレイ済み
返信[17]
親投稿
ЩMr.Mo14 mr.mo14
And none of the ifs will ever run because (example) the string "a" does ot equal "blabla" in [if "a"=="blabla"]. also, string variables should always end in a "$".
1そうだね
プレイ済み
返信[18]
親投稿
ЩMr.Mo14 mr.mo14
And statements like [if "get out of the car" then ... etc.] work and will ALWAYS run because the string returns 1 because it is non-empty.
1そうだね
プレイ済み
返信[19]
親投稿
klonoa hellkolbod
whats wrong with 0:37 exactly
0そうだね
プレイ済み
返信[20]
親投稿
ЩMr.Mo14 mr.mo14
Take all of the parenthesis off the if statements.
0そうだね
プレイ済み
返信[21]
親投稿
klonoa hellkolbod
still lists error
0そうだね
プレイ済み
返信[22]
親投稿
ЩMr.Mo14 mr.mo14
What line? show me.
0そうだね
プレイ済み
返信[23]
親投稿
klonoa hellkolbod
i took all of the (s off yet it still lists error
0そうだね
プレイ済み
返信[24]
親投稿
ЩMr.Mo14 mr.mo14
show me the code
0そうだね
プレイ済み
返信[25]
親投稿
klonoa hellkolbod
opps sorry here it is (i ran another code test thing to see if it worked and now it says error 0:40)
0そうだね
プレイ済み
返信[26]
親投稿
OlOOlOOl pi_r_round
You have an orphan REPEAT at line 35. Each REPEAT must have a matching UNTIL.
0そうだね
プレイ済み
返信[27]
親投稿
klonoa hellkolbod
opps forgot about that i guess i will do the thing i was going to do or delete it for a demo to see if the teleporting response glitch is still there
1そうだね
プレイ済み
返信[28]
親投稿
klonoa hellkolbod
ok so dumb question #4 i think idk lost count but is this the proper way for 3 choices or do have to add the whole a==>b or a==c thing also i know the $ symbol is there i'm gonna delete those after (not the ones in the if commands)
0そうだね
プレイ済み
返信[29]
親投稿
OlOOlOOl pi_r_round
Those would work, but probably not the way you intended in this situation. If you're prompting for a choice and you store the user's input in A$, the you need to check each possible value of A$. IF A$=="explore" THEN ... IF A$=="rest" THEN ... IF A$=="eat" THEN ...
0そうだね
プレイ済み
返信[30]
親投稿
OlOOlOOl pi_r_round
If you're providing numbers for action shortcuts such as these. ?"1 - explore" ?"2 - rest" ?"3 - eat" And allow only numeric input. INPUT A You could use IF statements something like this. IF A==1 THEN... IF A==2 THEN... IF A==3 THEN...
0そうだね
プレイ済み
返信[31]
親投稿
klonoa hellkolbod
ok but what about the until thing how exactly does that work cause i did one of the examples and it listed error
0そうだね
プレイ済み
返信[32]
親投稿
OlOOlOOl pi_r_round
It could be something like this. REPEAT ?"Your options are..." ... INPUT "Do which action number?",A IF A=="1" THEN GOTO @EXPLORE IF A=="2" THEN GOTO @REST IF A=="3" THEN GOTO @EAT UNTIL 1 Any non-zero number after the UNTIL forces it to always go back up to the REPEAT. You could achieve the same thing by replacing "REPEAT" with "@label" and "UNTIL" with "GOTO @label".
0そうだね
プレイ済み
返信[33]
親投稿
klonoa hellkolbod
so if "i did your options are"where do i put them and can i keep the options with other parts of text
0そうだね
プレイ済み
返信[34]
親投稿
OlOOlOOl pi_r_round
The lines that print out the options would go below the "your options are" line. What happens when the user selects an option would go after that option's IF ... THEN, or at the label pointed to by the IF ... THEN. However, this may lead to a very large program. Maybe a better idea would be to map out all the data for each room and write generic functions to present the data and control the flow.
0そうだね
プレイ済み
返信[35]
親投稿
klonoa hellkolbod
oh god this is gonna be a little hard to remember that route i'm just gonna write that down somewhere and do it tomorrow
0そうだね
プレイ済み
返信[36]
親投稿
klonoa hellkolbod
does the options have to be in "s
0そうだね
プレイ済み
返信[37]
親投稿
OlOOlOOl pi_r_round
Any text you want to appear on the screen as is, has to be in quotes. If it's not in quotes, letters & words are interpreted as variables and their value (typically zero) will appear.
0そうだね
プレイ済み
返信[38]
親投稿
OlOOlOOl pi_r_round
Sorry, on reviewing my earlier posts I noticed mistakes. Lines where we're checking the value of a numeric variable, like this one here: IF A=="1" THEN... should not have quotes around the numbers. They should actually be like this one below. IF A==1 THEN... We need quotes only if we're using string variables, like this. IF A$=="KOALA" THEN...
0そうだね
プレイ済み
返信[39]
親投稿
klonoa hellkolbod
its cool so if i have something like this (i know i need untill but after that) it should work
0そうだね
プレイ済み
返信[40]
親投稿
klonoa hellkolbod
can you have until after the re$ or does it need its own line
0そうだね
プレイ済み
返信[41]
親投稿
OlOOlOOl pi_r_round
The lines after 35 look like they'll work fine. Line 35 itself needs a few minor changes. At the start instead of ? (print), since it's asking for input it should be INPUT (INPUT will print the message in the quotes.) Then at the end of the quotes, the variable name should match that which you've used in the IF ... THEN lines after it, so instead of RE$ the variable should be A
1そうだね
プレイ済み
返信[42]
親投稿
klonoa hellkolbod
ok changed it how exactly do i close the thing though because i tried doing it the way i did for the other ones yet it listed a error (also idk if line 35 is 100% yet or not so i'm also checking for that to)
0そうだね
プレイ済み
返信[43]
親投稿
OlOOlOOl pi_r_round
Except for line 35, it looks like it should be ok. I don't know what your idea is for the storyline, but I'm guessing it's going to branch out, based on each of the three actions, so you might want to add some GOTO statements.
0そうだね
プレイ済み
返信[44]
親投稿
klonoa hellkolbod
ok how good are you at writing choose your horror stories btw
0そうだね
プレイ済み
返信[45]
親投稿
OlOOlOOl pi_r_round
I don't really know... I've never tried.
0そうだね
プレイ済み
返信[46]
親投稿
klonoa hellkolbod
ok so i know how to add and use a goto statements i just dont know where to put them
0そうだね
プレイ済み
返信[47]
親投稿
OlOOlOOl pi_r_round
After the print statement's closing quotes. IF A==4 THEN ?"You follow the white rabbit": GOTO @ForestClearing IF A==5 THEN ... ... @ForestClearing ?"You arrive in a forest clearing. A small white rabbit is here. Select 1 to offer a carrot, 2 to play your harp, or 3 to try to catch it with your net." ...
0そうだね
プレイ済み
返信[48]
親投稿
klonoa hellkolbod
so i got the things down not sure if you still use input or something else so..
0そうだね
プレイ済み
返信[49]
親投稿
ЩMr.Mo14 mr.mo14
Fix your inputs, you have: input [string] but it should be formated like this: input [string],[var_to_store_input]
0そうだね
プレイ済み
返信[50]
親投稿
ЩMr.Mo14 mr.mo14
so something like this: input "blablatextstuff...",A or input "example2",A$ is correct.
0そうだね
プレイ済み
返信[51]
親投稿
klonoa hellkolbod
one last question (for now at least) where is the best place to put a repeat and a until
0そうだね
プレイ済み
返信[52]
親投稿
klonoa hellkolbod
ok scratch that cause i accidentaly found a way to do that with people sending junk to my code my actual problem is separating the answers to the questions because this happens how do i fix this
0そうだね
プレイ済み
返信[53]
親投稿
OlOOlOOl pi_r_round
Think back to the choose-your-own-adventure books. Each @LABEL represents the heading at the top of each chapter. The chapter contains some information about what's happening now. These are your ?"print statements". Then you're given some action options. These are the INPUT"what to do",A statements. Then you're told "If you run away, turn to chapter 73". These are IF A==... GOTO
0そうだね
プレイ済み
返信[54]
親投稿
OlOOlOOl pi_r_round
At the end of each @LABEL block and before the next @LABEL you need some code that'll direct the user to somewhere else. Otherwise they'll fall out of one @LABEL block and into the next. (It's like reading a choose-your-own adventure book through page by page instead of following the instructions.)
0そうだね
プレイ済み
返信[55]
親投稿
klonoa hellkolbod
does it have to be a specific line of code or could it be any line of code
0そうだね
プレイ済み
返信[56]
親投稿
OlOOlOOl pi_r_round
Line numbers are free. It's ok to use as many as you need. :)
0そうだね
プレイ済み
返信[57]
親投稿
klonoa hellkolbod
ok will add later i do have a beta for this (i'm adding to it right now) i want the beta to be a open beta like what friday the 13th devs did but free but idk how to access sbs is it a member ship thing or something also idk what to add in terms of game play cause idk how to do somethings i want to do (like load a playable map of the town this game takes place in combat system ect) so...
0そうだね
プレイ済み
返信[58]
親投稿
*J.P.*[P]£ aj2003aj
use locate for line placing.
0そうだね
プレイ済み
返信[59]
親投稿
klonoa hellkolbod
what do you use for sprite placing though
0そうだね
プレイ済み
返信[60]
親投稿
*J.P.*[P]£ aj2003aj
spofs to place it.
0そうだね
プレイ済み
返信[61]
親投稿
klonoa hellkolbod
ok so that rises the question how do you properly set up a inventory system
0そうだね
プレイ済み