Hello, i am new and was just getting use to the old CS but then i decided to download the newer version and now i need help declaring variables.
Before we had to declare it in mygame.js but now i heard its different.
So how do i declare variables?
For me i need to declare the players name, pets name, and some skills
For skills in the stats screen i need to declare Evil and Kindness.
Can anyone help me?
ADNox
May 30, 2013, 10:25pm
2
You can still use the old version. I am with no issues.
@ADNox
Really? i seem to be having trouble with it.
How do we do it in the new version?
ADNox
May 30, 2013, 10:32pm
4
No idea. I just list the variables in mygame.js. I have about fifty variables so far, mostly hidden ones to track MC decisions, and no problem. Then again, I don’t have the latest version of CS. I have the one right before it.
hahah yeah i had the version just before the new one and got used to it… then updated it… and yeah now i am lost hahaha…
how did you do it in mygame.js again? i think i will try declare it in there and see if it works
ADNox
May 30, 2013, 10:46pm
7
Check the mygame.js section of the Wiki. It’s for that version.
ok, thanks if anyone knows how to do it in the newer version, please let me know thanks
Declaring variables in the latest update is intended to be done in startup.txt, though I believe you could still do it in mygame.js.
In theory - I haven’t really switched over yet either - it should look like this.
startup.txt
*create varnum 123
*create varstrin "One Hundred Twenty-Three"
*create varboo false
and having just noticing what variables you wanted:
*create name "J. Doe"
*create pet "Bingo"
*create moral 50
BASICALLY, the new version consolidates *create, which has been undeprecated, and *set by having you declare a value when you create a variable.
I switched to the latest. Still use mygame.js to declair my variables. I did have a problem at first. I started building my list of variables as I normally would, but they did not seem to work. That was until I realized that the ]} had to be moved down and all my variables placed inside of it. Then no problems. Lol
Ok lol it has been fixed thanks guys
oh no, i fixed it by just doing it with mygame.js file… Since i did it, i dont need not need assistance right now… thanks