HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about this trigger.

07-04-2006, 12:28 AM#1
Sardius
Will this trigger work as I itend it... I want the heroes to gain 25% after both of them has hit level 5 and the other has hit level 4.

So if Hero1 is level 5, when Hero2 gains a level and becomes level 4, will this trigger activate? I am just concerned about the Event itself with the condition.

Trigger:
Collapse Events
Unit - A unit Gains a level
Collapse Conditions
(Hero level of Hero1) Equal to 5
(Hero level of Hero2) Equal to 4
Collapse Actions
Hero - Make Player 1 (Red) Heroes gain 25.00% experience from future kills
07-04-2006, 12:41 AM#2
yuripro84
Is that action valid?

Won't you have to set a unit group, and set thier experience gains?
07-04-2006, 12:48 AM#3
Hemlock
It will set the experience rate to 25% of the normal experience rate if hero1 reaches level 5 and hero2 level 4.

Thats what it will do
07-04-2006, 01:44 AM#4
dvdgstwrt
Quote:
Originally Posted by Sardius
Will this trigger work as I itend it... I want the heroes to gain 25% after both of them has hit level 5 and the other has hit level 4.

So if Hero1 is level 5, when Hero2 gains a level and becomes level 4, will this trigger activate? I am just concerned about the Event itself with the condition.

Trigger:
Collapse Events
Unit - A unit Gains a level
Collapse Conditions
(Hero level of Hero1) Equal to 5
(Hero level of Hero2) Equal to 4
Collapse Actions
Hero - Make Player 1 (Red) Heroes gain 25.00% experience from future kills

It will work IF Hero1 and Hero2 Both actually gain the triggering levels - at the same time - No I don't mean that they both level up at the same time, but both of them are in or at the level when the other reaches the triggering level.

Lets say that Hero 2 gets to level 4 before hero one gets to level 5 - it won't fire -

Conversely: If hero 1 gets to level 6 before hero 2 gets to level 4 then again it will not fire.

But if you use "greater than/ equal to" (whatever the exact wording is) then no matter how high of a level one of your heroes goes when the other reaches the minimal level the trigger wll fire.

Down side is that it will fire each time each of your triggering heroes gains a level after the 4/5 combo- since this is a one time event then you might want to add "turn off this trigger" the trigger will be turned off after it fires once.

Unless you are freezing your heroes levels (1 and 2) elsewhere at 5/4?
07-04-2006, 03:16 AM#5
Hemlock
Quote:
Originally Posted by dvdgstwrt
Lets say that Hero 2 gets to level 4 before hero one gets to level 5 - it won't fire -

Thats not true, as long as both conditions are true, it will fire, order does not matter.
07-04-2006, 03:57 PM#6
dvdgstwrt
Quote:
Originally Posted by Warnicro
Thats not true, as long as both conditions are true, it will fire, order does not matter.

Your right the way I worded that was incorrect.

I mean if Hero2 gets to level 5 before hero1 gets to level 5
07-04-2006, 04:21 PM#7
Alevice
I would suggest using 'at least' rather than 'equal to'.
07-04-2006, 05:06 PM#8
Mystic Prophet
the problem with your trigger can be summed with dvdgstwrt's post.

Quote:
But if you use "greater than/ equal to" (whatever the exact wording is) then no matter how high of a level one of your heroes goes when the other reaches the minimal level the trigger wll fire.