I need a system to. when a player write, for exemple:
-a 25
or
-s 25
or
-i 25
it checks if the player has 25 LUMBER, then remove 25 lumber from the player, and add agility (a) strenght (s) intelligence (i) to the unit.
Each player has only unit, since its a RPG game
The player may write any number between 1-9999 to add the stat, and when he does it and doesnt have the following lumber, display a message saying it.
-a 25
or
-s 25
or
-i 25
it checks if the player has 25 LUMBER, then remove 25 lumber from the player, and add agility (a) strenght (s) intelligence (i) to the unit.
Each player has only unit, since its a RPG game
The player may write any number between 1-9999 to add the stat, and when he does it and doesnt have the following lumber, display a message saying it.