- Joined
- Aug 20, 2004
- Messages
- 65
I'm trying to make an upgrade system for my map (think rival nations). I use a building that sells dummy units to heroes trying to upgrade their sides spawns. Here's what I have so far:
Upgrade Weapon
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Sold unit)) Equal to Upgrade Weapons 1
(Owner of (Selling unit)) Equal to Player 1 (Red)
Actions
Player - Set the current research level of Iron Forged Swords to 1 for Player 1 (Red)
Neutral Building - Remove Upgrade Weapons 1 from Village Forge 0106 <gen>
Neutral Building - Add Upgrade Weapons 2 to Village Forge 0106 <gen> with 0 in stock and a max stock of 1
Except it doesn't work: the upgrade is researched alright, but the Village forge gets neither the upgrade 1 unit removed or the upgrade 2 unit added.
Upgrade Weapon
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Sold unit)) Equal to Upgrade Weapons 1
(Owner of (Selling unit)) Equal to Player 1 (Red)
Actions
Player - Set the current research level of Iron Forged Swords to 1 for Player 1 (Red)
Neutral Building - Remove Upgrade Weapons 1 from Village Forge 0106 <gen>
Neutral Building - Add Upgrade Weapons 2 to Village Forge 0106 <gen> with 0 in stock and a max stock of 1
Except it doesn't work: the upgrade is researched alright, but the Village forge gets neither the upgrade 1 unit removed or the upgrade 2 unit added.