HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Turn Based

07-22-2003, 08:26 PM#1
tuigi
anyone knows how to make a turn based map/trigger.
a little like in Fallout 2 or Tactics?
07-22-2003, 08:57 PM#2
miyog
mm, you could do unit - pause.. that would be a start.. maybe like in every 6 seconds intervals, you pause units owned by a player if a condition for being in a battle is set..
07-22-2003, 08:59 PM#3
The Ted
I would make a boolian variable, call it player1turn or something. Anyways, make it start as true.

Make a trigger,
-every 1 seconds

-player1turn=true

-pick all units matching type(units owned by player 2) pause unit(picked unit)
-pick all units matching type(units owned by player 1) unpause unit(picked unit)

Anyways, it should go something like that. Make two triggers like that, one for player 1, and one for player 2. Unfourenetly it only works for two players, and you have to add more triggers for when you want to change turns.
07-23-2003, 02:09 AM#4
tuigi
can you explain more in detail waht is a boolian variable and what exatcly does it do?
07-23-2003, 02:27 AM#5
Pesmerga
before you rush into a turn based map maybe you should understand advanced triggering.
07-23-2003, 03:03 AM#6
Sage the Mage
Boolean variables are variables which only have the possibility of being true or false. You might know them as switches in Starcraft...since they basically act as switches.
07-23-2003, 03:07 AM#7
yoda_24
use dialog boxes
07-23-2003, 04:39 AM#8
gurubvin
when u start the map pause all units. setup a system by which wc3 determines whose turn it is. once it's that units turn, unpause him. when he decides to finish his turn, pause him again and unpause the next unit.
07-23-2003, 07:03 AM#9
The Ted
Yeah, thats what I was trying to say. But I was trying to show him how you could enter it into the world editor.

The thing that stopped me, was what is the best way to trigger it to be the other guys turn?

My first thought would be to have a trigger that changes the boolian variable every time a unit makes an action. But isn't just moving a unit considered an action? And what if you have multiable units?
07-23-2003, 11:48 AM#10
yoda_24
have a dialog box to switch turns.
07-23-2003, 11:52 AM#11
tuigi
dialog box...that would make you finish your turn(manually if i am right)...i would like to have like 6 seconds tunrns or something like that.
07-23-2003, 07:40 PM#12
tuigi
can someone send me a map whit those triggers in it just so i can use it as an example(working example) please