• 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.

Hero limitation

Status
Not open for further replies.
how can u set the limitation for a specifict TYPE of hero more than 1?
like for example when a melee map start (play as human), u make ur altar then u can create 2 paladins?
(wat i mean is, you know when u choose ur 1st hero, and all other hero types are greyed out so u can't make them right? except wat i need is you can keep creating paladins till its limitation is maxed but other "types" of heros are still greyed out until u upgrade ur town hall)
help plz
thx
 
hmmm if i do that (say for paladin) then i can make as many pally i want... the thing is i only want 3 pallys (so like u can have 3 pally, 2 archmage, 1 mountainking, 2bloodmage AND only 3 types of heros so like in a game, u build 3 pally 1 mountainking and 2 bloodmage, after that u can't make archmage cuz u already have 3 types of heros)
any ideas?
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
I think I'm misunderstanding your question...
But I get it now.

#1: Remove all limitations.
#2: Create a dummy unit for each hero.
#2: Create an integer with an array (so it's MPI), I think you also need a boolean to check if it has been trained before.
#3: As soon as a dummy (paladin or mountain king etc) is trained set that integer +1.
#4: If the integer is 3 then just remove the dummy. If it is below just create a hero then.

Something like that. At teh very least you'll need some triggers.
 
I think I'm misunderstanding your question...
But I get it now.

#1: Remove all limitations.
#2: Create a dummy unit for each hero.
#2: Create an integer with an array (so it's MPI), I think you also need a boolean to check if it has been trained before.
#3: As soon as a dummy (paladin or mountain king etc) is trained set that integer +1.
#4: If the integer is 3 then just remove the dummy. If it is below just create a hero then.

Something like that. At teh very least you'll need some triggers.

hmmm a few things 2 uhm... "make sure", since im not that pro (when i say pro i means i might now be able 2 know wat are u talking about lol, but i can get a trigger 2 run... i think :3)

1. #2: Create an integer with an array (so it's MPI), I think you also need a boolean to check if it has been trained before.
uhm... wat is an integer with an arrawy (and wats a MPI)?


2. Only the human + night elf have multiple, identical heros (they're sort of like 2ndary commanders), the Ork and undead have primary Commanders (so its like 1 dk, 1 lich etc...). if u remove limitation for all heros (which i have no idea where 2 do that :D), won't that affect the other races as well?

3. I make good starcraft maps so let me ... interpret wat ur step #3 and #4 in starcraft map triggers and tell me if im right (if i get wat ur saying then i can find ways 2 make it happen in the wc3 map editor :3)
-unlimited number of heros
-when any player command more than X number(s) of y heros, remove 1 y hero for current player. is this wat ur saying? (but you know, since there is that uhm... hero head ... avatar thingy on the left top cornner, if u spam creating heros, wont ur screen be flooded with those things? XD)

PS: apart from those limitation thingy, i really wish the create certain hero button would simply disappear (like after u made 3 pally, the creat pally button disapear)
am i right? thx
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
hmmm a few things 2 uhm... "make sure", since im not that pro (when i say pro i means i might now be able 2 know wat are u talking about lol, but i can get a trigger 2 run... i think :3)

1. #2: Create an integer with an array (so it's MPI), I think you also need a boolean to check if it has been trained before.
uhm... wat is an integer with an array (and wats a MPI)?

MPI = Multi Player .... (Don't know what the I stands for. xD) It basically means that it will worker for players, it's more used with spells but still.
MUI - Multi Unit .... This kind of thing can be cast by multiple units but don't worry about this all.

Basically what you need to know is why you need an array. Lets say your integer is called HeroAmount. An array will make it HeroAmount[x].
This x is a value you can replace, in this case you can use something like triggering player or owner of triggering unit. This will return an integer from 1 to 12. This way you can make one trigger for all players instead of 12 triggers for each player.


2. Only the human + night elf have multiple, identical heros (they're sort of like 2ndary commanders), the Ork and undead have primary Commanders (so its like 1 dk, 1 lich etc...). if u remove limitation for all heros (which i have no idea where 2 do that :D), won't that affect the other races as well?

I'm talking about removing the tier requirements for heroes.

3. I make good starcraft maps so let me ... interpret wat ur step #3 and #4 in starcraft map triggers and tell me if im right (if i get wat ur saying then i can find ways 2 make it happen in the wc3 map editor :3)
-unlimited number of heros
-when any player command more than X number(s) of y heros, remove 1 y hero for current player. is this wat ur saying? (but you know, since there is that uhm... hero head ... avatar thingy on the left top cornner, if u spam creating heros, wont ur screen be flooded with those things? XD)

Come again? xD

PS: apart from those limitation thingy, i really wish the create certain hero button would simply disappear (like after u made 3 pally, the creat pally button disapear)
am i right? thx

Yeh that will happen, I guess I can just make a sample for you for the human heroes. Will take time cause I don't have much time.
expect the sample between 1 hour or 2 days.. xD

EDIT: I'm confused... You want to set hero limits to 3.. hmm.... that's easy but.. what was that other part? I'm not getting it... xD

EDIT2: Was bored so I created what I thought u wanted. You may choose to train 3 out of the 4 heroes. And you can train them 3 times each.
 

Attachments

  • Human Sample Limits.w3x
    26.2 KB · Views: 54
Last edited:
i have no idea wether this will work or not but im giving ur +rep :3 i'll tell u how it turned out XD

EDIT:
ok i tried it, its pretty awesome... however i noticed a few things that i dont really like
1. when i creat a paladin, while this unit is being made, i really wish all the other heros would grey out (cuz u need keep for the next hero type). plz note that while archmage, bloodmage, mountainking are grey out, u can still make pallies (until u reach 3 of them)
2. i realized i can simply just click on every single hero just 1 time, and i can have all 4 types D: (although i think we can ... i mean "I can" er... i mean "you can" address this issue when probelm #1 is solved)

i really hope there is a way to improve this. but the map u made is pretty good already
:3
 
Last edited by a moderator:
Level 17
Joined
Jun 12, 2007
Messages
1,261
ok i tried it, its pretty awesome... however i noticed a few things that i dont really like
1. when i creat a paladin, while this unit is being made, i really wish all the other heros would grey out (cuz u need keep for the next hero type). plz note that while archmage, bloodmage, mountainking are grey out, u can still make pallies (until u reach 3 of them)
2. i realized i can simply just click on every single hero just 1 time, and i can have all 4 types D: (although i think we can ... i mean "I can" er... i mean "you can" address this issue when probelm #1 is solved)

i really hope there is a way to improve this. but the map u made is pretty good already
:3

I'm trying to get it work, having no luck atm.
I'll try though. I'll give you an update later.

EDIT: Nope, can't get it to work. You'll need somebody else to create it.
 
Status
Not open for further replies.
Top