HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit upgrade to be made buyable by allied partner???

07-24-2003, 02:46 AM#1
Valoris
Im making an aos style map, and I would like for allied players( humans) to be able to purchase the upgrades for the computer controlled ally? Is this possible? Or if anyone knows a way to accomplish this ?
07-24-2003, 02:51 AM#2
theJ89
Actually, yes.

Make a copy of the goblin merchant.

Make the goblin merchant sell items.

Make an item for every upgrade (for example, Computer Plating)

When the item is bought, remove it, and add +1 to the computer's upgrade level with triggers...
07-24-2003, 02:54 AM#3
Allanon[Druid]
Try something like this.

EVENT: (Unit- Generic Unit Event)
Unit - A unit Finishes an upgrade

CONDITIONS: (Player Controller Comparison)
((Owner of (Researching unit)) controller) Equal to User

ACTION: (Player- Set Current Research Level)
Player - Set the current research level of (Researched tech-type) to [Level] for [Computer]
07-24-2003, 04:47 AM#4
Valoris
Thanks for the help guys, both excellent suggestions!
07-25-2003, 05:15 AM#5
Valoris
ok, I got it working using the first method mentioned, but for some reason when i tell it apply the improved masonry upgrade, none of the buildings get any upgrade?
The troop upgrades appear to be working fine.
Is there something I dont know?
Arent building upgrades applied as soon as the tech is researched?
07-25-2003, 06:02 AM#6
piRo-piOn
you need to give the building the improved masonry ability.

and also for the first method you have to make an exception for when the hero inventory is full. To avoid doing this you might just want to make the building sell units.