What Am I doing wrong?


#1

I started doind the stats, and I only have this for now… almost have…

When I try to run the game to see if it’s working, it says that there is a “syntax error” (line 36), someone can point the error for me, because I can’t see it?!?

thanks

===========================================================================

choicescript.txt
*stat_chart

text Name
percent Health
percent Strength 
percent Agility 
percent Intelligence 
percent Luck 
opposed_pair Close Combat
	Range Combat
opposed_pair Virtuous
	Fearsome
text Powers/Skills
text Gadgets
text Drawbacks
text Profession

===========================================================================
mygame.js

// Specify the default starting stats here

stats = {
name:
,health: 100 (the error should be here)
,strength: 50
,agility: 50
,intelligence: 50
,luck: 50
,close_combat: 50
,virtuous: 50
,powers:
,gadgets:
,drawbacks:
,profession:

};

// Specify the stats to use in debug mode

debugStats = {
name:
,health: 100
,strength: 50
,agility: 50
,intelligence: 50
,luck: 50
,close_combat: 50
,virtuous: 50
,powers:
,gadgets:
,drawbacks:
,profession:

};

// or just use defaults
// debugStats = stats


#2

This all looks fine to me. The syntax error will be pointing to the code in your vignette. The .txt file where you start writing the story. Check out the 36th line…


#3

thanks,

I stopped use “tab” and worked…


#4

hum… happens again… syntax error
someone can help me?


// Specify the default starting stats here
stats = { name: ,health: 100 (the error should be here at char 5) ,energy: 100 ,strength: 10 ,agility: 10 ,will: 10 ,gear_avatar: ,gear_color: ,gear_mode: off ,gear_defense: 100 ,special_move: ,leadership: 03 ,intelligence: 03 ,compassion: 03 ,street_wise: 03 };
// Specify the stats to use in debug mode

debugStats = {
name:
,health: 100
,energy: 100
,strength: 10
,agility: 10
,will: 10
,gear_avatar:
,gear_color:
,gear_mode: off
,gear_defense: 100
,special_move:
,leadership: 03
,intelligence: 03
,compassion: 03
,street_wise: 03
};

// or just use defaults
// debugStats = stats


#5

You don’t have defaults for a number of your stats (like name). You need a default for every entry. Also, remember to that text variables have to be in “quotation marks”, otherwise their treated as variables.


#6

Also, the first variable shouldn’t be preceded by a comma. Only the subsequent ones.


#7

thanks for the support, it’s working now!