Warcraft III resources & community, 2003–2006 · archived

2 Short Question PLS HELPS!!!!

11 posts
#1

2 Short Question PLS HELPS!!!!

:( How or what its the tools for protect maps and how i can use it???

:( And when i do the trrigger random (4 choose hero)
that choose always the same unit first shot.....
#2
1. There are no protecting tools on this site. Someone can help?

2. Plz show your trigger/s else help is difficult.
#3
This is my triggers for random


Events:
Unit-A unit comes within 80.00 of circle of power 047
Unit-A unit comes within 80.00 of circle of power 046

Condition :
(Unit-Type of (Triggering Unit)) equal to Chooser

Action:
Unit-Move (Triggering Unit) instantly to Center of Hero Section (<--its my region)
wait 0.10 sec.
Unit-Move (Triggering Unit) instantly to (Position of Random unit from (Units in Hero Section matching ((Unit-Type of (Mathing Unit)) Equal to Circle of Power
#4
And yes this site got a tools for protect map but me that wont work
#5
Hm, I would do the random selection another way (once I had problems with random unit from group, too)

Create a integer variable (e.g. "RandomChoose)


Events:
same as yours

Condition :
same as yours

And now in the action you choose a random integer between 1 and 10 (if you have 10 heros, for example)
Wait a sec so WC3 can do it and then you create an If/Then/Else function for every hero that checks the number and starts the action/trigger to select one of the heros for the player.

Action:
Set RandomChoose = (Random integer number between 1 and 10)
Wait 0.10 seconds
If (RandomChoose Equal to 1) then do [e.g. Action for Bloodmage as Hero] else do (Do nothing)
If (RandomChoose Equal to 2) then do [e.g. Action for Paladin as Hero] else do (Do nothing)
If (RandomChoose Equal to 3) then do [e.g. Action for Cryptlord as Hero] else do (Do nothing)
etc
#6
Darky won't upload any map protectors because he hates protected maps.
#7
OK TY
#8
ty but that do always the same thing (that choose always the same hero the firts time)....
#9
oh no no no no that works that work :twisted:
ty realy ty
#10
No problem. Though I needed a similar trigger in one of my maps it wasn't much work to do. Glad that I could help you. 8)
#11
you have to create a rondom number two times otherwise the first number will be always the same cause the random generator of wc3 isn't that uptodate...