• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

2 probably simple questions

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2010
Messages
950
#1
is there a way to make an undead gold mine go from mining +10 gold at a time to +20 without doing a unit replace or anything messy because that will replace and mess with the goldmine etc.. Just have all the current undead mines owned by a specific player start mining +20 and all the new ones the build also mine +20

#2 (More important)
Is there a event that will go off when a player checks the allied victory check box in F11 menu?
not changing alliances or anything just simply checking or unchecking that ally vic box.
 
Level 10
Joined
Jan 20, 2011
Messages
492
#1
This is possible to change by finding the ability for the Haunted Gold Mines statistics in the OE under abilities. This ability is called Blighted Gold Mine Ability, and under Gold Per Interval you can change it to what you want. This ability has plenty of possibilities, where you can expand the size of the ring so they can start mining further away, and increase or decrease the amount of miners
 
Level 13
Joined
Mar 24, 2010
Messages
950
yeah i've seen the ability and already have it set up in a rigged way, i was wondering if there is a better way to just have a trigger change the ability that unit has/comes with or something from an upgrade. all other races are able to have the gold gathered increased via an upgrade except undead for some reason.


also the alliance change thing i know about but is there a condition to only respond to that check ally vic thing instead of to an actual alliance change such as unallying or allying
 
Level 5
Joined
Nov 30, 2012
Messages
200
About your second question, there is no event or easy way to capture a player changing his/her alliance with another player. This is why I created one :)

I made a map that can detect this. I was not able to test it with actually using the Allies menu because I didn't have another person to test with. However, it works as tested with triggers with which I can ally/unally the computer players.

Anyway, I hope this works, because I spent quite a while working on it.

It would be much easier with hashtables, if anyone wants to tackle that. But I never learned them.
 

Attachments

  • AllianceBox.w3x
    23 KB · Views: 54
Status
Not open for further replies.
Top