Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Hammerite on Sun 16/10/2005 14:12:41

Title: Question 'bout Conditional commands (Score)
Post by: Hammerite on Sun 16/10/2005 14:12:41
is there a way to have a sort of conditional command thing like 'if score is...' and if so, how?
Title: Re: Question 'bout Conditional commands
Post by: Ashen on Sun 16/10/2005 14:22:39
In the Interaction Editor, I don't think it can be done. In scripting, use the game.score variable:

if (game.score == 27) {
  //Do stuff
}


Title: Re: Question 'bout Conditional commands (Score)
Post by: Hammerite on Sun 16/10/2005 14:40:23
ive tried this but i get A LOT of error messages!
Title: Re: Question 'bout Conditional commands (Score)
Post by: Elliott Hird on Sun 16/10/2005 20:22:18
Then that's a problem with your code. Post it here and I'll see what I can do.