HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with some Triggers:

01-07-2005, 03:00 PM#1
Gurrgel
Need help with these triggers:

Soul Shard Copy
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Soul Shard
Actions
Unit Group - Pick every unit in UnitsWithSoulShards and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Equal to (Hero manipulating item)
Then - Actions
Item - Remove (Item being manipulated)
Item - Set charges remaining in (Item carried by (Hero manipulating item) of type Soul Shard) to ((Charges remaining in (Item carried by (Hero manipulating item) of type Soul Shard)) + 1)
Else - Actions
Unit Group - Add (Hero manipulating item) to UnitsWithSoulShards

What I want to do with this one is stack items of the type soul shard, so if you pick up a second one, the item will disappear and instead you get an additional charge with your first soul shard.

This is the second one:

Summon Minion
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Summoning unit)) Equal to Human
Actions
For each (Integer A) from 1 to ((Hero level of (Summoning unit)) / 2), do (Actions)
Loop - Actions
Unit - Add Item Damage Bonus (+1) to (Summoned unit)
Unit - Add Item Life Bonus (least) to (Summoned unit)
Unit - Add Imp Level Up Mana to (Summoned unit)
For each (Integer A) from 1 to ((Hero level of (Summoning unit)) / 5), do (Actions)
Loop - Actions
Unit - Add Item Armor Bonus (+1) to (Summoned unit)
Unit - Add Imp Mana Regen Bonus to (Summoned unit)


I want to have a simple system for leveling up summons, so for every level of the summoner(the hero) I want him to gain bonuses acoording to the trigger, I only get each bonus once, but I'm pretty sure that's because I start from 1 in the "For Action", somehow it doesn't add the abilities more than once.

I noticed a mistake with the first trigger, so I was able to solve it, still need help with the second one though.
01-07-2005, 05:25 PM#2
mogmiester
You can only add the same ability once, so adding +1 damage for an infinite amount of times will still only add +1 damage. Instead you'll have to trigger each level seperatly.