Need amount of score [SOLVED]

Started by Nethros, Tue 14/12/2004 15:18:45

Previous topic - Next topic

Nethros

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?

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

strazer

And try searching the forum. There have been similiar questions in the past.


TerranRich

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.
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk