• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Someone HELP me creat a 4 hero selection system><

Status
Not open for further replies.

lilchinaman

L

lilchinaman

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><
 
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
 
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.
 
Thank you guys very much...i really appresciate it..


i will try my best to follow thesse directions....once again thanks :lol:
 
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 ><
 
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.
Back
Top