Scripting Question

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Scripting Question

Postby chickens1127 » Thu Oct 16, 2008 12:52 pm

I have a scripting question. I am making a game which you have to buy skill points. They are recorded in a variable. And then when you fight an opponent, it takes your skill level, compares it to your opponent, and if you have a bigger skill level it goes to a frame that says you won, and if you have a lower skill level it goes to a frame that says you lose.
Hi... It's Chickens1127...
CHINCHILLAS ROCK!

RIP Crazygamemaker
User avatar
chickens1127
AM Magazine Moderator
 
Posts: 898
Joined: Thu Nov 22, 2007 12:49 am
Location: Awsomeville, USA

Postby Lyberodoggy » Thu Oct 16, 2008 1:09 pm

Okay what's the question?
:lol:

Just store the skill points in a var:
attackskillpoints=5

Then use some comparison code:

If attackskillpoints>oppenentattackskillpoints then
Gotoframe "You Win"
else if attackskillpoints=oppenentattackskillpoints
Gotoframe "Draw"
else
Gotoframe "You Lose"
End if
End if
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby chickens1127 » Fri Oct 17, 2008 12:38 pm

thanks
Hi... It's Chickens1127...
CHINCHILLAS ROCK!

RIP Crazygamemaker
User avatar
chickens1127
AM Magazine Moderator
 
Posts: 898
Joined: Thu Nov 22, 2007 12:49 am
Location: Awsomeville, USA


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests