HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Player End Turn n what not

08-24-2006, 02:29 AM#1
Monky-Master
Well my friend and I are trying to make a tactics type map(you know, Final Fantasy Tactics, ETC....) and we are in need of a player turn system. Since i only know really basic JASS, and my friend sucks @ cleaning up leaks, we can't seem to make one. Does anyone know of one or can make one for us?

If you're gunna make one, please make it 10 player compatable.

If no one can, then we'll figure something out....

Thanks~
08-24-2006, 04:34 AM#2
Ignitedstar
Maybe you could open up the map Soul Chess and figure something out, because that's the only map I can think of that has a turn based system using the players, somewhat.

EDIT: Oh yeah, I'm not sure if it's protected or not.
08-25-2006, 05:43 AM#3
PipeDream
In order to implement a turn based system you need a state machine. You need to know where you are at any given moment and an event that will advance you to the next moment. Knowing where you are means global variables or game cache, events mean perhaps player skips cinematic. Then you need to code all the logic for each state, namely allow the player to make only legal modifications to the state.

Give it your best shot and we can help when you run into trouble.
08-25-2006, 05:54 AM#4
Monky-Master
Ok, so ive managed to make players end their turns and stuff.

But i cant seem to make the thing check if the player is actually playing, so otherwise, it skips his/her turn and goes to the next.

I attached the map if you want to see what i did.
Attached Files
File type: w3xRound Ends.w3x (15.2 KB)