Making an RPG with AGS: Difference between revisions

Jump to navigation Jump to search
m
So to get cat right
*>Dasjoe
mNo edit summary
m (So to get cat right)
Line 7: Line 7:
Firstly, I should say that there are many ways to script RPG's with AGS. I will tell the way I use while I was developing Asporia: Hidden Threat in this tutorial (all the screenshots are from the source code of the game.)
Firstly, I should say that there are many ways to script RPG's with AGS. I will tell the way I use while I was developing Asporia: Hidden Threat in this tutorial (all the screenshots are from the source code of the game.)


'''The Variables Like Health, Mana and Exp.'''
==The Variables Like Health, Mana and Exp.==




Line 28: Line 28:




'''The GUI Which Shows The Health, Mana and EXP. Status'''
==The GUI Which Shows The Health, Mana and EXP. Status==


Let's prepare our GUI where we can learn how many health, mana and exp. we have.
Let's prepare our GUI where we can learn how many health, mana and exp. we have.
Line 116: Line 116:




'''How to die in the game:'''
==How to die in the game:==


If an enemy can attack you, then you should be able to die in the game. Type this scripts in the repeatedly_execute section:
If an enemy can attack you, then you should be able to die in the game. Type this scripts in the repeatedly_execute section:
Line 148: Line 148:




'''Level Up:'''
==Level Up:==


You can level up in the game after you have a definite exp. points. For example in the repeatedly_execute section:
You can level up in the game after you have a definite exp. points. For example in the repeatedly_execute section:
Line 167: Line 167:
The player will gain some new magics. Sure, you can use your own scripts for level up.
The player will gain some new magics. Sure, you can use your own scripts for level up.


''' Different Endings:'''
==Different Endings:==
 
You may also want to add different endings which is according on the player's decision in the game. For this, add this code to game_start:
You may also want to add different endings which is according on the player's decision in the game. For this, add this code to game_start:
''
''
Line 200: Line 199:
The room 62 leads you to the good ending in the game. And the room 57 is to another ending which isn't good...
The room 62 leads you to the good ending in the game. And the room 57 is to another ending which isn't good...


'''And....cheats :)'''
==And....cheats :)==


If you think your game may be found too hard by some players, then you can add some cheats. To on_key_press;
If you think your game may be found too hard by some players, then you can add some cheats. To on_key_press;

Navigation menu