I need help with rpg
Guest
|
Post by I need help with rpg on Jun 22, 2005 14:29:18 GMT -5
My friend and I are making a tactical RPG. i'm not sure if you answer questions about those. I know a little bit of code but i need help making the turns. On each turn you can move, attack or use magic, and pass. And then the enemies get a chance to do the same thing.
|
|
|
Post by Nailog on Jun 23, 2005 19:29:36 GMT -5
Well, I'd say making turns in a tactical RPG is a lot like making turns in a traditional RPG's battle system.
You'll need to figure out the turn order, and then activate each unit when it should activate. When it is a player's turn, you'd wait for input first, and then carry out the actions and advance the turn. When it's a computer's turn, you'd figure out what the computer should do (AI) and then advance the turn.
I would suggest using an array with instance IDs of the fighting units inside it. You can then go one by one through the array, letting each unit act.
|
|
|
Post by sqidwarf on Jul 19, 2005 21:36:58 GMT -5
how would you make it go through the arrays
|
|
|
Post by IsmAvatar on Jul 21, 2005 11:30:38 GMT -5
use a variable that increments at the end of each turn, and resets after it reaches the number of players. It will then be used as the array index.
|
|