jig7c
Stop reading me...-statement
- Reaction score
- 123
Okay... I have a small bit of a problem..
In my map, you can do an upgrade to increase the gold mined from the gold-mines and it is successful for human, orc, and night-elf, but i'm having a problem
upgrading undead's gold mine..
In the Upgrade editor... I made a custom upgrade that adds +1 to the level of the ability (Blighted Gold Mine) used by the Haunted Gold Mine..it didn't work..
I tried to use trigger, it didn't work..
In my map, you can do an upgrade to increase the gold mined from the gold-mines and it is successful for human, orc, and night-elf, but i'm having a problem
upgrading undead's gold mine..
In the Upgrade editor... I made a custom upgrade that adds +1 to the level of the ability (Blighted Gold Mine) used by the Haunted Gold Mine..it didn't work..
I tried to use trigger, it didn't work..
Code:
Undead GoldLumber
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Improved Resource Harvesting (Undead)
Actions
Set TempGroup = (Units owned by (Owner of (Triggering unit)) of type Haunted Gold Mine)
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Unit - Add Blighted Gold Mine Ability to (Picked unit)
Unit - Set level of Blighted Gold Mine Ability for (Picked unit) to ((Level of Blighted Gold Mine Ability for (Picked unit)) + 1)
Custom script: call DestroyGroup (udg_TempGroup)
Custom script: set udg_TempGroup = null
Set TempGroup = (Units owned by (Owner of (Triggering unit)) of type Ghoul)
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Unit - Add Harvest (Ghouls Lumber) to (Picked unit)
Unit - Set level of Harvest (Ghouls Lumber) for (Picked unit) to ((Level of Harvest (Ghouls Lumber) for (Picked unit)) + 1)
Custom script: call DestroyGroup (udg_TempGroup)
Custom script: set udg_TempGroup = null
Quest - Display to (Player group((Triggering player))) the Quest Update message: improved resource h...