Is there a shorter or easier way to this?
Choice of Games » Game Development
by Bee4400
18h ago
Hello. I am currently in the beginning of developing my first game with no programming history. But i hit a wall here. If my “bare handed” attribute is 1 it is set to novice and there are 5 stages to this. But the problem is; I have 7 attributes, so, should i just copy and paste the commands renaming the attributes or is there an easier method to do this? *if bare_handed >= 1 *set bare_handed “novice” *goto stats *elseif bare_handed >=2 *set bare_handed “trained” *goto stats *elseif bare_handed >=3 *set bare_handed “competent” *goto stats *elseif bare_handed >=4 *set bare_handed “p ..read more
Visit website
Need help with solving the error "Expected choice body"
Choice of Games » Game Development
by Kirumototep
1d ago
Hello everyone, It’s been a while, and I am trying my hand at ChoiceScript to (hopefully) produce a piece of interactive fiction. Amidst my studying of the code in ChoiceScript, I have come across an error that I can’t seem to shake off. I am receiving the error “Expected choice body”, and it is an error that I am getting from this code: What was the name that the universe first assigned you? *choice #This is your name... *label input_name That which could never be ripped from you. *input_text name This is your name? ${name}? *choice ..read more
Visit website
Posting finished games for feedback vs updating WIPs as you go
Choice of Games » Game Development
by Jacic
2d ago
Hey all, just wondering on writer’s thoughts on this one. What do you think are the pros and cons of leaving games until they’re pretty much done before releasing them into the wild on the forums? Particularly for games that aren’t going to get much discussion on the boards anyway. (Or maybe even for those which might.) I’ve seen a few finished/mostly finished games go up for the pre-req 1 month or so I think it is before they can be submitted to HG. And I’ve seen a few more authors talk about games they have in small private betas for much of their development. Anyone feel like discussing why ..read more
Visit website
*if and *elseif not working
Choice of Games » Game Development
by JesterChaos
2d ago
For some reason while using *if and *elseif isn’t working when it was before. Is there a problem with my code? *if alignment "evil" text *choice *elseif alignment "good" text *choice *else text *choice I cant figure out why it’s giving me an error. 3 posts - 3 participants Read full topic ..read more
Visit website
Trouble using parameters
Choice of Games » Game Development
by starfishcreation
3d ago
I’m having a bit of trouble with a subroutine. More specifically, about how to pass variables tthrough a parameter. My code for the subroutine looks like this: *label abilityDots *params currentFull maxFull *temp totalFull 0 *temp totalEmpty 0 *set showStat "" *set totalFull currentFull *set totalEmpty (maxFull - totalFull) *label buildFull *if (totalFull = 0) *goto buildEmpty *else *set showStat "●" *set totalFull -1 *goto buildFull *label buildEmpty *if (totalEmpty = 0) *return *else *set showStat "○" *set totalEmpty -1 *got ..read more
Visit website
Can the code "read" the current background style?
Choice of Games » Game Development
by Omeg
4d ago
For my game, I want to insert an image that “blends in” with the background. The problem is, ChoiceScript allows for switching between four different background styles, and while I don’t have an issue preparing four different images, there’s also the matter of knowing which style the player has enabled at the given point. Is there variable I can access, or a command I can type to check the current background color? And no, making the image background transparent won’t fix my issue. I specifically want to know whether this “background recognition” is possible, thanks in advance. 4 posts - 3 par ..read more
Visit website
Problems getting the new checkpoint system to restore player named saves- Could I use goto instead of gosub?
Choice of Games » Game Development
by NumberedEntity
4d ago
Hi everyone, I’m trying to implement the new checkpoint save system. I want to allow players to name their saves. I have followed the instructions given on this forum and the choice-script website and set the saves and restores up in a gosub. *label save *temp slot Which slot do you want to save? *fake_choice #Slot 1: ${save_name_1}* *set slot 1* #Slot 2: ${save_name_2}* *set slot 2* #Slot 3: ${save_name_3}* *set slot 3* #Cancel* *return* What do you want to call your saved game? *input_text save_name[slot] *if slot = 1 save_checkpoint slot1 return *if slot = 2 save_ ..read more
Visit website
Quicktest problem "Cannot read properties of null (reading '0')"
Choice of Games » Game Development
by Jacic
4d ago
Hi everyone. I’m trying to get a scene bugfixed. Wonder of wonders I’ve finally managed to get it to pass random test after working around some of the usual culprits that trigger it off like loops and text entries during the tests. Now it’s throwing up a quickest error as above though. I’ve got no idea where to find it as it doesn’t give you a line error and I’m not sure what it means. (I’m guessing a variable isn’t set?) Any help appreciated! I’ve got no idea at the moment where to start. It’s a 26k document so not really thrilled by the idea of trying to disable it line by line (which is goi ..read more
Visit website
Problems getting the new checkpoint system to restore player named saves
Choice of Games » Game Development
by NumberedEntity
4d ago
Hi everyone, I’m trying to implement the new checkpoint save system. I want to allow players to name their saves. I have followed the instructions given on this forum and the choice-script website and set the saves and restores up in a gosub. *label save *temp slot Which slot do you want to save? *fake_choice #Slot 1: ${save_name_1}* *set slot 1* #Slot 2: ${save_name_2}* *set slot 2* #Slot 3: ${save_name_3}* *set slot 3* #Cancel* *return* What do you want to call your saved game? *input_text save_name[slot] *if slot = 1 save_checkpoint slot1 return *if slot = 2 save_ ..read more
Visit website
*hide_reuse reset by *goto_scene?
Choice of Games » Game Development
by Pseudavid
6d ago
Hello! I’m doing my first experiments in Choicescript. I know that *goto_scene resets all temp variables, but I was surprised to discover that it resets the choices hidden by *hide_reuse. For example: *hide_reuse *label options *choice #One One! *goto options #Two Two! *goto options #Three Three! *goto_scene somethingelse Choices 1 and 2 will disappear after being used. But if you choose 3, and the other scene sends you back to this choice block, choices 1 and 2 will reappear. Both ways of using *hide_reuse have the same result. I n ..read more
Visit website

Follow Choice of Games » Game Development on FeedSpot

Continue with Google
Continue with Apple
OR