ally upgrades help

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
im trying to make it so that when i upgrade a technology or research my allys get the benefit of it, eg like candy wars.

i did a search and found some triggers to help me, but it only works on lvl 1 of a tech and i need to be able to upgrade weapons armour etc more than once. the triggers im using at the moment are:

EVENT
A unit finishes a research

CONDIDTION
Research type = to weapons upgrade

ACTION
Player group, pick every player in allys of player 1
-set level of research of weapons upgrade to level 1 of player 1's allys.

im sorry this isnt exact as im at work away from WC3 atm, but thats the basic jist of it. thanks again for any help.
 
Events

Unit - A unit Finishes research

Conditions

(Researched tech-type) Equal to *Weapon Upgrade*

Actions

Player Group - Pick every player in (All allies of (Owner of (Triggering unit))) and do (Player - Set the current research level of (*Weapon Upgrade*) to (Current research level of (*Weapon Upgrade*) for (Owner of (Triggering unit))) for (Picked player)

Basically, every time Player A researches the Weapons Upgrade tech-type to level B, this trigger will set the tech-type level of the Weapons Upgrade of every ally of Player A to level B as well. Just replace Weapons Upgrade with any tech-type in the trigger to make it work in your map.
 
add a condition
variable [yourVariable] == 0

and add the action
set variable [yourVariable] = [yourVariable] + 1

you'll need a variable for each upgrade for each team but each variable should track the upgrade level adequately
 
Status
Not open for further replies.
Back
Top