| 11-21-2004, 04:20 AM | #1 |
Ok, heres the deal. I have a map with up to nine players, and I have ten castles. When the players type -castle, they are supposed to randomly get one of the said castles, and a town hall should appear at a preordained position in the castle. Could anyone tell me the triggers I would use to do this and or give me a map/ example to help? Thanks! P.S. I like giving out reputation ! |
| 11-21-2004, 04:35 AM | #2 |
umm i dun no but its not my wife for Nerzhul ITS <(-LIFE-)> |
| 11-21-2004, 11:15 AM | #3 |
Guest | Code:
*Events Chat - [color=deepskyblue]Player 1[/color] writes [color=deepskyblue]-castle[/color] as an [color=deepskyblue]exact match[/color] *Conditions *Actions Set [color=deepskyblue]X[/color] (Integrer variable) to [color=deepskyblue]random value[/color] between [color=deepskyblue]1[/color] and [color=deepskyblue]4.[/color] If [color=deepskyblue]X[/color] equal to [color=deepskyblue]1[/color], then create a [color=deepskyblue]town hall[/color] at [color=deepskyblue]position[/color][color=#dddad2], else do nothing.[/color] [color=#dddad2]If [color=deepskyblue]X[/color] equal to [color=deepskyblue]2[/color], then create a [color=deepskyblue]halls of dead [/color]at [color=deepskyblue]position[/color][color=#dddad2], else do nothing.[/color] If... [/color] That's the basics, I hope it helps. Salutions® |
| 11-21-2004, 12:29 PM | #4 |
but, if you do like that, mary jade, for all players, then it will be possible for someones to get the same castle. you need to find out a way of doing it like this: set "Integer" to (random number between 1 and 9 except already used castles) |
| 11-21-2004, 12:53 PM | #5 |
mara jade is on the right way, just create 1 hidden unit for every castle in any corner of the map, instead of using an integer. then select a random unit of them, if the unit is unit 1 then give the player castle 1 ect... just remove the unit after and you can be sure it wont be selected again. |
