Limiting heroes

Sivert

New Member
Reaction score
0
Code:
Event
 Map initialization
Conditions
 Actions
    Player - Limit training of Heroes to 1 for Player 1 (Red)
    Player - Limit training of Heroes to 1 for Player 2 (Blue)
    Player - Limit training of Heroes to 1 for Player 3 (Teal)
    Player - Limit training of Heroes to 1 for Player 4 (Purple)
    Player - Limit training of Heroes to 1 for Player 5 (Yellow)
    Player - Limit training of Heroes to 1 for Player 6 (Orange)
    Player - Limit training of Heroes to 1 for Player 7 (Green)
    Player - Limit training of Heroes to 1 for Player 8 (Pink)

Well, I have a Altar which create three custom heroes, but the thing is, when I build one hero, I can easiely build ten more of the same or different hero.. I tried this trigger, but it didnt work.. I only want 1 hero to be trained in total.
 

Trollvottel

never aging title
Reaction score
262
i know:

-you can need the heros wood which you get only one time
-the heros can cost food
-you can trigger it:

a unit enters playable map area

set herocount[playernumber of owner of triggering unit] = herocount[playernumber of owner of triggering unit] +1
if herocount[playernumber of owner of triggering unit] > 1 remove triggering unit from the game
 

Sivert

New Member
Reaction score
0
Of course.. I'll do the wood thing, but.. It wont cost wood to revive? or do I have to change something there too?
 

Trollvottel

never aging title
Reaction score
262
you can change it , i think its repair costs and if that doesnt work you can change it somewhere in the gameplay constants
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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