Random Hero dialog and starting gold

istar

New Member
Reaction score
31
eh, there is a better way but you can try this
put the 11 heroes on map first, and put them in unitgroup
change ownership of random hero in unitgroup to player
then remove hero from unit group
this way no hero is duplicated
but this method is inelegant, i cant find the unitpool tutorial i saw last time...
 

Baltazhar

Active Member
Reaction score
55
It would just be additional work to create them on the map to begin with and then make a new trigger to change owners on them, when he has a working trigger that just needs minor modifications.

That's just imo, ofc :)
 

Holla.

New Member
Reaction score
14
but he said i needed a unit pool so that 2 heroes of the same type wouldn't spawn on the map! i cant have 2 of the same hero, thats just bad asthetics.
Well i need to know how to do it easyer.
And no i cant just use the trigger, the trigger i have now will create more than one of the same hero type on the map!

IMPORTANT: I think im getting the same hero every time when i click random. Someone earlyer said something about samerandom not checked or something..
 

istar

New Member
Reaction score
31
well, thats just 1 of the ways you can have
there could a better way, just wait for some other's view on it
 

Baltazhar

Active Member
Reaction score
55
The before mentioned "Unit pool" is just one way to do it.

With my suggestion you will only spawn 1 hero of each type.

The question you asked, and the answer for it is really simple triggering. Perhaps our replies have been a bit confusing. There is no need to panic, it's a really easy trigger to make, honestly :)

- Baltazhar
 

istar

New Member
Reaction score
31

Baltazhar

Active Member
Reaction score
55
That makes sense - I know squad about Jass :)

Will have to learn it sometime though, triggers are very limited and it takes a long time to work around complicated abilities.
 

Holla.

New Member
Reaction score
14
Here is the trigger as it appears now:

picoftriggerprblem.jpg


Problem is, it gives you the same hero every time.
 

Baltazhar

Active Member
Reaction score
55
That is only when you are testing the map, because Fixed Seeds is enabled.

In your main WE window, go to Files -> Preferences. In on the the tabs, you should find a checkbox named "Use Fixed Seeds". Just remove the check, and press Ok. That way you map generates random heroes when you test it.

- Baltazhar
 

Exide

I am amazingly focused right now!
Reaction score
448
>Why does this trigger spawn 11 heroes?
-You're missing Player 8.
 

Nexor

...
Reaction score
74
you need to set the random number, not?
everytime you are using it, and uncheck the fixed random seed at map preferences.
 

13est

New Member
Reaction score
5
Is this problem still there?

Try this:

instead of

Random integer number between 1 and 11

use (if you can find)

Math: random number

Then have random number between 1 and 11.
 

Holla.

New Member
Reaction score
14
Yes the random works, why does it spawn 2 heros of the same type on the map??????
I dont want 2 paladins :/
 

Exide

I am amazingly focused right now!
Reaction score
448

Holla.

New Member
Reaction score
14
Dont want 2 heroes of same type

Ok, this trigger works PERFECTLY fine.
EXEPT, how can i make it so that it only spawns 1 of each hero type. I mean, it doesn't rlly make sense to have 3 paladins.

picoftriggerprblem.jpg


Theres the trigger, tell me how to get 1 hero per type.
Thx
One more thing: Yes this is like the last thread, although you dont have the false title and 2 pages of stuff. Also im looking to CONVERT this.
last thing, i looked at exides random heroes guide and i dont get anything about it. Lil help?
 

Dregonx

TH.net Regular
Reaction score
21
Yes the random works, why does it spawn 2 heros of the same type on the map??????
I dont want 2 paladins :/

It'll do that unless you specify it, telling it to randomly spawn units, it'll always be random, meaning there's even a chance the entire map could be filled with Paladins or whatever hero, although rare.

I honestly wouldn't know how to specify it(because I've never needed to), but at least this bit of information (hopefully)helped you out.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
You already have a thread right above this one asking this question.
Please don't make multiple threads for the same thing.

EDIT: As for your problem, get the last created unit then remove his corresponding number?
 

BRUTAL

I'm working
Reaction score
118
easiest way i think would be to place all units units in a region on the map
then when the map starts add them to a unitgroup, UG. and kill them, but dont remove them from the game
then for your trigger all you do is like remove all the setting units variables and the create units actions
make a loop from 1-12 and now make a unit variable called random. now set random to a random unit from UG. then make a create unit action creating random, then remove random from UG so it cant be selected again

and btw, you have 11 unit types in the trigger but 12 players, so..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top