Icon hero limit/hero limit

shady

Member
Reaction score
7
Now, i see many posts how to limit heroes, but i haven't find what i need.



My problem:

When i buy hero it originally disappear from altar ( picture7-8 ), but when i add my modified hero and buy it( picture1-6 ), the icon still there and i can buy that hero again. I want to make hero disappear when i buy it, like picture 7-8. If anyone helps I'll make hero with name/model/spells/string names in thanks of help, this will be done in my next map release. Also +rep in the TH forum. :)

Thanks.


picture1 here

picture2 here

picture3 here

picture4 here

picture5 here

picture6 here

picture7 here

picture8 here
 

Tawnttoo

New Member
Reaction score
36
Trigger:
  • Selection
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Owner of (Sold unit))
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
there are many possible solutions for you.

first of all, custom heroes need to be added into the "hero" list in gameplay constants to make the "melee-hero" actions work for them (limit heroes, add townportal scroll, etc)

another possibility could be (only if the tavern is owned by a single player, others cannot buy from here) to just limit the training of that unit type to 1 for the owner of the tavern / all players manually. theres an action to do so:
Trigger:
  • Player - limit construction / training of UNIT-TYPE for PLAYER to VALUE


another solution, working for multiple players buying from the same tavern, would be to add all the heroes via the trigger action "Neutral - Add Unit type to market place". because items / units bought from a market place which were added this way are immediately removed from the lust after purchase. though i think this solution would be the most work.
 

shady

Member
Reaction score
7
there are many possible solutions for you.

first of all, custom heroes need to be added into the "hero" list in gameplay constants to make the "melee-hero" actions work for them (limit heroes, add townportal scroll, etc)

another possibility could be (only if the tavern is owned by a single player, others cannot buy from here) to just limit the training of that unit type to 1 for the owner of the tavern / all players manually. theres an action to do so:
Trigger:
  • Player - limit construction / training of UNIT-TYPE for PLAYER to VALUE


another solution, working for multiple players buying from the same tavern, would be to add all the heroes via the trigger action "Neutral - Add Unit type to market place". because items / units bought from a market place which were added this way are immediately removed from the lust after purchase. though i think this solution would be the most work.



Can you made me that trigger I'll send you my map in PM. Please :)
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
which do you mean? this?

Trigger:
  • Limit_Hero_Construction
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Player - Limit training of HERO to 1 for PLAYER

i think you can make it yourself.

or with the market place it would look like this:
Trigger:
  • Limit_Hero_Construction_Marketplace
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Neutral Building - Add HERO to MARKET with 1 in stock and a max stock of 1
 

shady

Member
Reaction score
7
which do you mean? this?

Trigger:
  • Limit_Hero_Construction
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Player - Limit training of HERO to 1 for PLAYER

Oh, damn thx thx thx thx thx a lot, now i send you PM, you just tell me Name/spells/name strings/model of hero you want, and I'll add it in next release.
 

BruteBrutal

New Member
Reaction score
1
which do you mean? this?

Trigger:
  • Limit_Hero_Construction
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Player - Limit training of HERO to 1 for PLAYER

i think you can make it yourself.

or with the market place it would look like this:
Trigger:
  • Limit_Hero_Construction_Marketplace
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Neutral Building - Add HERO to MARKET with 1 in stock and a max stock of 1



Hi I'm new to this of mapcreating, actually I started yesterday with a 12 hour session learning by doing.. I'm getting there :)

One question, in the triggers, for example what u wrote here, how do I mark "ALL" or a group as same trigger, or do i have to have like 4 triggers if it's the same command for Red, Blue, Teal and whoever?

Limit hero to 1 for Player 1 (Red) (want to change that for ALL instead of player 1)
 

shady

Member
Reaction score
7
Hi I'm new to this of mapcreating, actually I started yesterday with a 12 hour session learning by doing.. I'm getting there :)

One question, in the triggers, for example what u wrote here, how do I mark "ALL" or a group as same trigger, or do i have to have like 4 triggers if it's the same command for Red, Blue, Teal and whoever?

Limit hero to 1 for Player 1 (Red) (want to change that for ALL instead of player 1)

This can't be done.

You must do this if you want to be only one trigger

Trigger:
  • Limit
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Limit training of HERO to 1 for Player 1 (Red)
      • Player - Limit training of HERO to 1 for Player 2 (Blue)
      • Player - Limit training of HERO to 1 for Player 3 (Teal)
      • Player - Limit training of HERO to 1 for Player 4 (Purple)
      • Player - Limit training of HERO to 1 for Player 5 (Yellow)
      • Player - Limit training of HERO to 1 for Player 6 (Orange)
      • Player - Limit training of HERO to 1 for Player 7 (Green)
      • Player - Limit training of HERO to 1 for Player 8 (Pink)
      • Player - Limit training of HERO to 1 for Player 9 (Gray)
      • Player - Limit training of HERO to 1 for Player 10 (Light Blue)
      • Player - Limit training of HERO to 1 for Player 11 (Dark Green)
      • Player - Limit training of HERO to 1 for Player 12 (Brown)
 

Tawnttoo

New Member
Reaction score
36
Trigger:
  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • Player - Limit training of Hero to 1 for (Picked player)


Use this.
 

BruteBrutal

New Member
Reaction score
1
which do you mean? this?

Trigger:
  • Limit_Hero_Construction
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Player - Limit training of HERO to 1 for PLAYER

i think you can make it yourself.

or with the market place it would look like this:
Trigger:
  • Limit_Hero_Construction_Marketplace
    • Events
      • Map Initialization
    • Conditions
    • Actions
      • Neutral Building - Add HERO to MARKET with 1 in stock and a max stock of 1


http://i52.tinypic.com/6ifxiv.png

Doesnt work for me :( No hero is added in the building... (wanted it because when I add "Sell unit" in the Object Editor it always end up to be 3 units of everything, and I only want 1 or no number at all if possible. :/
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
as i said above the "add unit to market place" thing does only work if your tavern is open to all players and got the "sell unit" or "sell item" ability. (which market places do have by default)

and you can change the max stock number for units in the object editor as well.
 

BruteBrutal

New Member
Reaction score
1
1 my hero selection building is a tavern the original building but with new skin (farm) however when i set Stock to 1 it's still 3.

And same problem in the shop (originally a Goblin shop) but there I can set stock value, but the problem is that I cant get it do be INFINITY (want no cap on the items) as it is in most games.

EDIT: I'm so slow -.- If I change the max stock in the shop AND on the HERO it works. MY BAD.

BUT how do I make it without the number, (like when you train unit)
 

Tawnttoo

New Member
Reaction score
36
Well, I suppose the tavern should indeed be able to train the unit. With selling units, its the same deal as mercenary camps in melee games and there is the number.
 

BruteBrutal

New Member
Reaction score
1
My original building was a tavern, but how much I try to add the custommade heros as TRAIN HERO isntead of SELL UNIT it doesnt appear when the game begins, I can only SELL UNIT, and that would be fine IF they disappeared when you picked them but they don't. :/ I could take STOCK REPLENISH INTERVAL and make it a VERY high number so it takes LOOONG before u can pick again (otherwise you can pick a new hero everytime you're dead meanwhile your hero is dead (0/1 food))
 

Cheddar

This is the way it was meant to be.
Reaction score
126
I'm pretty sure the unit failing to disappear is due to classification in the "Campaign" section, correct?
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top