
-----------------------------------
Rudiger
Thu Dec 04, 2003 7:21 pm

War games
-----------------------------------
ok i have started my game.So have to make map in the bback ground and stuff like that.. if its to hard to ask though can ou help me for a little more :D. yeah i have to have random numbers like dice so you can take over other poepls counterys so how you do that...

-----------------------------------
poly
Thu Dec 04, 2003 7:52 pm


-----------------------------------
you could do it this was (i believe this is not very efficient, cause i dont like being efficient)
var p1die, p2die : int
randint (p1die, 1, 6)   %die for player 1
randint (p2die, 1, 6)   %die for player 2
put "Player 1 rolled a ", p1die %p1 rolls
put "Player 2 rolled a ", p2die %p2 rolls
if p1die > p2die then   %if p1die is great than p2die then p1 wins
put "Player 1 wins"
elsif p1die < p2die then    %if p2die is great than p1die then p1 wins
put "Player 2 wins"
elsif p1die =p2die then %if both p1 & p2 die same than roll again
%blah blah
end if


-----------------------------------
Rudiger
Mon Dec 08, 2003 10:51 pm


-----------------------------------
ok i have about 8 player game and i need to make them have turns how do i do that?

-----------------------------------
poly
Mon Dec 08, 2003 11:26 pm


-----------------------------------
well just expand it... so youll have 8 variables, 8 different dice and have it so the screen says like "Player x hit enter to roll dice" than after he rolls, it asks say player 2 to roll the dice etc

-----------------------------------
Rudiger
Tue Dec 09, 2003 4:49 pm


-----------------------------------
k thanx
