Island Defense
February 06, 2012, 04:21:02 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Latest version:  3.0.6G4, 3.0.8d
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Hero Limitation Trigger Help  (Read 1153 times)
0 Members and 1 Guest are viewing this topic.
Formal
Murloc
*

Karma: +3/-4
Posts: 82


-Formal-


View Profile
« on: March 03, 2009, 02:41:08 PM »

Imagine I'm trying to make a trigger like in Island D that only allows you to train 1 hero.

So I build Goblin Labratory or whatever else.
I world Editor I set Goblin Labratory to Train Unit Goblin Titan Hunter.

Anyways So i made this trigger to hopefully work for it and had no such luck...

Also I tried using the the default Melee Script that only lets you hvae 1 type of a hunter, but it's allowing me to have 3 of 1 type of hunter...


Here is the script I tried to use
Limit Heroes
    Events
        Unit - A unit Finishes training a unit
    Conditions
        ((Triggering unit) is A structure) Equal to True
        ((Trained unit) is A Hero) Equal to True
    Actions
        Neutral Building - Remove (Trained unit-type) from (Triggering unit)



Edit:  Found an extremely easy way to do it I'm just stupid and was making it so much harder than it is, there is an

   Limit Heroes
    Events
        Map initialization
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Player - Limit training of Heroes to 1 for (Picked player))

     
Anyways I feel really dumb after finding this, lets not make fun Smiley
« Last Edit: March 03, 2009, 02:56:00 PM by Formal » Logged

13omb
Spearloc
***

Karma: +9/-13
Posts: 167


13omb, usa west


View Profile
« Reply #1 on: March 03, 2009, 05:39:56 PM »

you need to add the custom hero into the gameplay constants where all the other ones are
Logged

explosions are awesome...
Formal
Murloc
*

Karma: +3/-4
Posts: 82


-Formal-


View Profile
« Reply #2 on: March 03, 2009, 07:01:41 PM »

you need to add the custom hero into the gameplay constants where all the other ones are

I actually already had that done,  but i'm still confused why using the melee game standards of 1 per type of hero doesn't work in this situation where a building only sells one type of hero so it lets me buy 3 of the same hero.  Seems quite retarded to me.
Logged

Darox
Controversial!
Administrator
Get a life
*****

Karma: +92/-51
Posts: 9001



View Profile Email
« Reply #3 on: March 03, 2009, 08:31:27 PM »

Island Defense uses upgrades.

When you make a hunter for the first time, you're actually researching an upgrade that does nothing.

That's why when you first make a hunter you can hit 162/150 food.
Logged

Quote from: BodyHammer
I HATE ALL MINORITIES.  WHITE POWER.  I ALSO BEAT WOMEN.
Yesterday my girlfriend pissed me off so I punched her.  Why did she piss me off so much?  She got snippy and was all like "You're a pedophile" so I got pissed and was like "Bitch, don't call me that, and how the hell do you even know that word?  You're only 8."

P.S.  Darox rocks.
razor_exe
Worker


Karma: +0/-1
Posts: 4



View Profile
« Reply #4 on: April 19, 2010, 02:31:25 AM »

Is there any way to add more hero's to the game?

Sorry i posted here. Im new  Grin
Logged

Bringer Of the Light XD
Undead.Cow
Guest
« Reply #5 on: April 19, 2010, 05:23:41 PM »

Are you serious.. Go post on the www.TheHelper.com
Logged
killadev
Titan Hunter
****

Karma: +11/-53
Posts: 406



View Profile
« Reply #6 on: May 23, 2010, 03:02:30 AM »

Cow some people like me cant edit worth CRAP!!!
Logged

Host: DLer please name builders
DLer: Tree thing thing, Naga, Fire, Water, Peasant, Peon, Whisp.
Undead.Cow
Guest
« Reply #7 on: May 23, 2010, 07:46:13 PM »

Cow some people like me cant edit worth CRAP!!!
So?
Logged
theorchero
Guest
« Reply #8 on: June 13, 2010, 09:56:02 PM »

Well you found it out yourself. Much less disgraceful when you do that. It pisses me off when I can't solve something on my own =/
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!