Hey. Maybe you know that I am working with a game and use the score as money, but I would want to know how to do so I must have for example 100$ to buy a shirt for. But if the character doesn't have enough money, he says. "Sorry, I cannot afford that." Could anyone help me with this?
Scripting, and the game.score global variable.
if (game.score < 100) DisplaySpeech(GetPlayerCharacter(), "I cannot affort that.");
else {
Ã, // purchase code goes here
}
Read the scripting tutorial and other scripting resources in the manual and on the AGS page if you already haven't looked into scripting.
And try searching the forum (http://www.adventuregamestudio.co.uk/yabb/index.php?action=search). There have been similiar questions in the past.
Okay. Thanks.
You should try looking through the scripting begnners' tutorial on the AGS web site. It teaches you about using "if" statements and operators...basic scripting information you'll need if you're going to do much of anything in AGS.