WiP - Castaway

I’m thinking about making a game, as of now about being a castaway - as the title mildly suggests - but I’m not too great with The Choice Script Machine (partially because I just now started taking the time to learn it today). The main reason of this thread isn’t really to give off sneak peaks on the game (even though they probably will be given), but to hope I can get some help with my code (not like walking me step by step with training wheels, but by telling me what I’m doing wrong, if I’m doing it wrong)… Also, any good ideas for plot may be possibly added in.

So my plan is to show my actual code so far in a post or two, and worry about figuring out the Dropbox when I have a good amount of game to actually show…
Remember, I’m a @Doctor, not a @Game_Scientist, so there are mistakes to be made.

Hey pal we are Padawans in code now. I at least are glad to help you :))

Thanks, @Mara… if that’s the case, I have yet to discover how to activate my lightsaber

Here’s what I got:

*create name “unknown”
*create nickname “unknown”
*create gender “unknown”
*create past profession “unknown”
*create leadership 0%
*create medical 0%
*create social 50%
*create mechanical 0%
*create piloting 0%
*create cunning 10%
*create intellegence 50%
*create bravery 40%
*create musical 10%
*create fighting 20%
*create hunting 0%

Your life flashes before your eyes!
“Who were you?” you hear an echoy voice through out your mind

*choice
#“I am a Man!”
*set gender “male”
*set fighting +5%
#“I am a Woman!”
*set gender “female”
*set social +5%

“Who are you?” you hear again

*choice
#“I am a Doctor!”
*set medical +90%
*set intellegence +30%
*set past profession “Doctor”
*set nickname “doc”
#“I am a Lawman!”
*set bravery +40%
*set intellegence +10%
*set leadership +70%
*set social +30%
*set fighting +70%
*set hunting +20%
*set past profession “Law Enforcer”
*set nickname “polecat”
#“I am a Scientist!”
*set intellegence +40%
*set social -10%
*set past profession “Scientist”
*set nickname “professor”
#“I am a Thief and a Con!”
*set cunning +70%
*set bravery +20%
*set social +30%
*set fighting +60%
*set past profession “Criminal”
*set nickname “scum”
#“I am a Mechanic!”
*set intellegence +20%
*set mechanical +90%
*set piloting +30%
*set social +10%
*set past profession “Fixer-Upper”
*set nickname “fixer”
#“I am a Musician!”
*set musical +90%
*set social +30%
What do you play?
*choice
#guitar, man!
*set past profession “lead guitarist”
*set nickname “strings”
#drums
*set past profession “drummer”
*if gender = “male”, set nickname “drummer boy”
*if gender = “female”, set nickname “drummer girl”
#vocals… also, I can play a mean harmonica solo
*set past profession “lead singer”
*set nickname “EDIT”
#piano and keyboard
*set past profession “pianist”
*if gender = “male”, set nickname “Piano Man”
*if gender = “female”, set nickname “EDIT”
#the BAGPIPE!!!
*set past profession “bagpiper?”
*if gender = “male”, set nickname “Scotty”
*if gender = “female”, set nickname “EDIT”

Push the butooon! Push it!
i believe you can use < pre > < /pre > for code without the spaces.

That doesn’t show my indentations, but fear not, I have them

@P0RT3R… I sure hope this button isn’t down in a hatch with a timer
Actually, I don’t think I’d be able to follow my writing without spaces…
Actually,Idon’tthinkI’dbeabletofollowmywritingwithoutspaces… yeah, that’d be tough

With piano you’ve got:

*if gender + “female”

I guess you should also have goto’s and labels, but other than that it looks fine.

@Cecilia_Rosewood, thanks for the catch - edited
… I’ll have to read up more on goto’s and labels, so far for me, Goto means a floating black droid in SWKotOR2

@Doctor I haven’t got a clue what that’s supposed to mean, but good luck with that.
Also, the sentence after ‘Your life flashes before your eyes’ should probably be more like: “Who are you?” or “What gender do you identify yourself with?” and not “Who were you?”
To my knowlege you don’t suddenly switch gender.
But I’m drifting a bit off-topic here.

Ok lets see if i can find any errors


*scene_list
Startup
(You need a scene list or else your game wont start)

*title Castaway
(Always goid to give your game a title

*create name "unknown"
*create nickname "unknown"
*create gender "unknown"
*create past_profession "unknown"
*create leadership 0
*create medical 0
*create social 50
*create mechanical 0
*create piloting 0
*create cunning 10
*create intellegence 50
*create bravery 40
*create musical 10
*create fighting 20
*create hunting 0
(dont add the % this isnt needed and dont use spaces)

Your life flashes before your eyes!
"Who were you?" you hear an echoy voice through out your mind

*choice
#"I am a Man!"
*set gender "male"
*set fighting +5%
*goto bla
#"I am a Woman!"
*set gender "female"
*set social +5%
*goto bla

*label bla
"Who are you?" you hear again
(I believe that if you dont use goto and label the choice will give a error after you press next)

*choice
#"I am a Doctor!"
*set medical +90
*set intellegence +30
*set past_profession "Doctor"
*set nickname "doc"
#"I am a Lawman!"
*set bravery +40
*set intellegence +10
*set leadership +70
*set social +30
*set fighting +70
*set hunting +20
*set past_profession "Law Enforcer"
*set nickname "polecat"
#"I am a Scientist!"
*set intellegence +40
*set social -10
*set past_profession "Scientist"
*set nickname "professor"
#"I am a Thief and a Con!"
*set cunning +70
*set bravery +20
*set social +30
*set fighting +60
*set past_profession "Criminal"
*set nickname "scum"
#"I am a Mechanic!"
*set intellegence +20
*set mechanical +90
*set piloting +30
*set social +10
*set pas_ profession "Fixer-Upper"
*set nickname "fixer"
#"I am a Musician!"
*set musical +90
*set social +30
What do you play?
*choice
#guitar, man!
*set past_profession "lead guitarist"
*set nickname "strings"
#drums
*set past_profession "drummer"
*if gender = "male", set nickname "drummer boy"
*if gender = "female", set nickname "drummer girl"
#vocals... also, I can play a mean harmonica solo
*set past_profession "lead singer"
*set nickname "EDIT"
#piano and keyboard
*set past_profession "pianist"
*if gender = "male", set nickname "Piano Man"
*if gender + "female", set nickname "EDIT"
#the BAGPIPE!!!
*set past_profession "bagpiper?"
*if gender = "male", set nickname "Scotty"
*if gender = "female", set nickname "EDIT"
(Again, no %, if im right this should work but hey, im not very good at coding either)

There are probably some things i missed

Okay, I’ll try to edit mine

@P0RT3R, should there be an under… thing ( _ ) if there are no spaces?

@porter Don’t forget the oh so important *author command :stuck_out_tongue:
Also, I don’t know exactly know how you’ve named your files, but I guess startup should be without capital S.

@Cecilia, I don’t know what an *arthor command is, but I don’t like the sound of it… okay, I’ve de-capitolized

@Doctor *author is the command you use to display the name of the author, in this case you.
It’s not that important at this point.

@Cecilia, oh, okay. I misread and was thinking of the name

Also sexism man +fight??? Woman +social??? So man blue female pink??? Thats not cool or funny at all X(

@poison_mara, I was trying to think of something, didn’t want to put nothing there… also, your little angry face thing is sort of pink. Nothing is confirmed for now, but by the end that part will most likely be gone anyway