Oh thanx
Im just trying to understand it all so the *rand court 1 4 is on my start up page where i put all my *creates
If you only want to roll the random thing once put it under the creates and achievement bits
Keeping it simple, the *rand
command works like *set
, except it picks random integer that is.
Okay so iām a new coder iām gonna be asking a lot of stupid questions on here: so the first one what do I do when I want to create a text input for name? I know the command is *input_Text YourName but where do I put it? and do I have to create a variable for that first and if so where to put that? In the stats page?
First off, welcome! Secondly, you are right that you must *create ānameā before you can have it defined by the user later. Just like with any variable.
Where do I create it though?
I use Chronicler to make this whole game so itās somewhat messier than Cside but also easier in some aspects. Do I put it in the Start up? Or in the Choice script stats page?
I would put any variable you create in Startup. I use CSIDE but I imagine that part would be the same on both platforms.
Youāll probably have a long list of 100+ variables on there before the end. Thatās normal.
*text_input
command works exactly the same as *set variable
. Just put it anywhere you wanted the textbox to show up.
So I donāt have to use *create?
You still need it.
*create
functions as variable-declaring command. Think of it as a godās way of saying, āYouāre exist, therefore youāre!ā
*text_input
asks the player (surprise surprise!) their input and collects it into a variable declared previously.
Ffff god dammit, using chronicler is easier in the way you can organize and get to code easily but confusing as hell to use
Is there a *text_input
? I thought it was *input_text
.
Yupā¦
Itās *input_text
, apparentlyā¦
Does anyone know what the code line is for when you want to make a choice disappear after itās been chosen once? Like for example, I have a breakfast scene and Iāve got ham set to break1 like this *set Break1 āHamā what code is required so you cannot pick the same thing for Break2?
How did I never think to look for this before??? (Thank you for the (very old) post @Carlos.R
If you just want to make it unselectable, use *disable_resuse above the *choice. If you want to make it completely disappear from the list, I use variables or temp variables.
ie:
Which room do you check?
*choice
*if (kitchen = "notvisited") #The kitchen.
*set kitchen "visited"
Edit: Actually I think youāre talking about a completely different scene, in which case the variable setting one (like the kitchen example) would probably be the way to go instead of disable_reuse. (If you want it to stay on the list but be greyed out in that way, you can use *selectable_if (instead of *if)
Well you can simply use *hide_reuse instead of *disable_reuse for previously selected choices.
Disable_reuse = grays the option
Hide_reuse = removes the option from the list
I use Chronicler so adding code and knowing where is a little difficult i dont use CSIDE like everyone else.
I donāt know much about how to add choicescript coding into chronicler sorry. (Havenāt used it.)
Oh donāt worry about that i figure it out eventually, i just need help with the coding and then i paste it all over the place until it works.