Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
i want the players to get extra gold for transporting the gold to a certain building. the night elves and undead will get some kind of upgrade instead but how do i upgrade the gold extraction of a haunted gold mine.
I don't know if there's a "Gold" upgrade... This is the best solution I can give you:
Melee Initialization
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players matching (((Race of (Matching player)) Equal to Undead) or ((Race of (Matching player)) Equal to Night Elf))) and do (Actions)
Loop - Actions
Set p = (Picked player)
Set pn = (Player number of p)
Set i[pn] = ((p Current gold) + Income[pn])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(p Current gold) Greater than CurrentGold[pn]
Then - Actions
Player - Set p Current gold to i[pn]
Else - Actions
Set CurrentGold[pn] = (p Current gold)
This should check every 0.03 seconds the current gold of the Players, and sets that gold into a Integer Variable (Current Gold). When your workers gets the gold, the current gold of the player will be higher than the Gold the player had 0.03 seconds, then, and the trigger will add your income amount (won't display it though).
All these variables are "Integer" if you see them having a '[]' it's because they're an array.
You just have to
You just have to set the trigger that increases "Income[Player Number]" of the player you want to increase income.
Another solution wold be messing with the workers harvest abilities and finding a way to replace it or give some other values...
if you cant help me but must harass me please leave this topic alone. i still dont know how to add a gold upgrade to the undead. i dont need script to research something because the undead can research. i dont however know how the amount of gold produced by a haunted gold mine can be upgraded through research.
i did modify the human upgrade improve lumber harvest.
change the "effect 1" from "lumber harvest" to gold harvest"
now the peasant will gather 15 gold.
bellow the edited field there is 2 new rows called effect 1 also ther you edit the base gold collected.
NOTE, i think the ability give 50% bonus collecting of the base gold collected
i have done that thing myself but i couldnt figure out how to add the same kind of bonus to undead. only humans, orcs and night elves. that is what i need help with. adding a gold mining bonus to undead.
i know that that wont help because race only decides what menu the upgrade appears on. (upgrades with human as race have worked on all races.) what it affects is decided by assigning the upgrade to units. my problem is that i cant figure out what units to assign it to to get it to increase the amount of gold extracted.
i know that already. buildings also have a field that tell what upgrades they are affected by. what i need to know is what unit or building i need to affect in order to increase gold mined from the haunted gold mine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.