• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Someone HELP me creat a 4 hero selection system><

Status
Not open for further replies.
Level 1
Joined
Mar 22, 2005
Messages
4
Hi:
I am new to map making...but i really like to know how to make a hero selection system just like X-Hero Siege..or haev a sheep and walk into a circle...something like that for my upcoming map.

i would b really aprriciated if someone teach me how to do it..thx><
 
Level 22
Joined
May 11, 2004
Messages
2,863
Its just a sequence if conditions...

For each hero:

Event: unit within range- a unit comes within range of (hero)

Action: if/then/else
if: Player comparison- owner of triggering unit is equal to (player)=true
then: Unit- Move (hero) to (center of region)
then: Unit- Change ownership of (hero) to (owner of triggering unit)
else: do nothing

repeat if/then/else sequence for every player, then repeat this whole trigger for every hero.
Good luck.
-VGsatomi
 
Level 6
Joined
Feb 15, 2005
Messages
183
What i would do, to make life easier and not have to make so many triggers, is use a loop function. I am just going to assuem you with have 12 people playing this map.

Event: a unit comes within range of (hero)

Action: For each interger A from 1 to 12 do:
-IF/THEN/ELSE (multiple functions)
IF:
-Owner of triggering unit is equal to Player(interger A)
THEN:
-Change ownership of (hero) to owner of triggering unit
-Move (hero) to (center of region)
-Remove triggering unit from the game.
ELSE:
-Do nothing.

This will make the trigger work for each of the 12 players. But if you wanted multiple heroes, you would have to make more triggers, unless you wanted to put the heroes into arrays, then you could just use this one trigger.
 
Level 1
Joined
Mar 22, 2005
Messages
4
Thank you guys very much...i really appresciate it..


i will try my best to follow thesse directions....once again thanks :lol:
 
Level 1
Joined
Mar 22, 2005
Messages
4
i would also like help on how to maek heros get money...u know like if u dunt do anything u gay like 10$ every second kind of thing...without actually going out and kiilling stuff....plz help ><
 
Level 6
Joined
Feb 15, 2005
Messages
183
with something like that you would make make a simple trigger like this. I will assume there are 12 players and that you want them to earn 10 gold every 3 seconds.

EVENT:
-Periodic event every 3 seconds

ACTIONS:
For each interger A from 1 to 12 do:
-Player Property - Set player(intergerA) gold = player(intergerA)gold + 10


thats it = )
 
Status
Not open for further replies.
Top