- Joined
- Jul 14, 2004
- Messages
- 516
Here is the deal, in my map Shadow Tactics, you can mine Iron Ore from Iron Deposits by attacking them with miners. It slowly adds to a variable called P(player number)IronOre.
When you build a blacksmith, it slowly adds Equipment to the P(Player number)Equip variable and removes iron ore from the P(player number)IronOre variable.
So every 2 seconds it does a small -10 in bright grey, and +1 in Dark Grey above your blacksmith. Meaning it removes 10 iron ore and adds one equipment.
Equipment is used to hire units. Well the thing is, I need to make a trigger that...
But its madness! I'd have to make a trigger for creating equip for each player, and another for mining, and another for multiple blacksmiths!
Thats...
10 x 10 x 10 = 1000
Even with the help of coffee I'd be sitting here awhile.
Please help, Im about to go sepuku over this damn plan. It seems so perfect in my head, but when I hit the triggers, its a nightmare, I'm probably gonna lose sleep over this one lol.
When you build a blacksmith, it slowly adds Equipment to the P(Player number)Equip variable and removes iron ore from the P(player number)IronOre variable.
So every 2 seconds it does a small -10 in bright grey, and +1 in Dark Grey above your blacksmith. Meaning it removes 10 iron ore and adds one equipment.
Equipment is used to hire units. Well the thing is, I need to make a trigger that...
----------------------------------
When Player owns Blacksmith
P(#)IronOre > or = 10
Every 2 seconds create floating text above blacksmith -10 (light grey) +1 (Dark Grey)
set P(#)IronOre = P(#)IronOre - 10
set P(#)Equip = P(#)Equip + 1
----------------------------------
When Player owns Blacksmith
P(#)IronOre < 10
Every 2 seconds create floating text above blacksmith 0 (light grey) 0 (dark grey)
----------------------------------
But its madness! I'd have to make a trigger for creating equip for each player, and another for mining, and another for multiple blacksmiths!
Thats...
10 x 10 x 10 = 1000
Even with the help of coffee I'd be sitting here awhile.
Please help, Im about to go sepuku over this damn plan. It seems so perfect in my head, but when I hit the triggers, its a nightmare, I'm probably gonna lose sleep over this one lol.