HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Upgrade help

11-26-2006, 06:04 PM#1
turondo
Well I'm having trouble with an upgrade trigger.

Basically I'm trying to make it so its 1 trigger and it initally starts at 600 seconds into the game, then researches 4 upgrades (5 lvl upgrade) for all players (total of 6 players); then it executes again at another 600 seconds and researches the same thing for all players, except the upgrades are now lvl2.. it keeps goin on for 5 levels.

So first im having trouble with how to make it affect all players and then to add it on every 600 seconds.. help would be appreciated, thanks.
11-26-2006, 06:20 PM#2
Fireeye
Trigger:
Collapse Events
Time - Every 600.00 seconds of game time
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Player - Set the current research level of <Replace with your Tech> to ((Current research level of <Replace with your Tech> for (Player((Integer A)))) + 1) for (Player((Integer A)))
Player - Set the current research level of <Replace with your Tech> to ((Current research level of <Replace with your Tech> for (Player((Integer A)))) + 1) for (Player((Integer A)))
Player - Set the current research level of <Replace with your Tech> to ((Current research level of <Replace with your Tech> for (Player((Integer A)))) + 1) for (Player((Integer A)))
Player - Set the current research level of <Replace with your Tech> to ((Current research level of <Replace with your Tech> for (Player((Integer A)))) + 1) for (Player((Integer A)))
11-26-2006, 08:41 PM#3
turondo
I did what you did.. heres my trigger

Trigger:
Alll
Collapse Events
Time - Every 600.00 seconds of game time
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Player - Set the current research level of Melee to (Current research level of Melee for (Player(((Integer A) + 1)))) for (Player((Integer A)))
Player - Set the current research level of Ranged to (Current research level of Ranged for (Player(((Integer A) + 1)))) for (Player((Integer A)))
Player - Set the current research level of Armor to (Current research level of Armor for (Player(((Integer A) + 1)))) for (Player((Integer A)))
Player - Set the current research level of War Training to (Current research level of War Training for (Player(((Integer A) + 1)))) for (Player((Integer A)))

but isnt working.. i dont know if this matters, but there isnt a building to research these, i just want them automatically researched and all my units have the ability to get these upgrades.. did i do something wrong?
11-26-2006, 08:43 PM#4
Daxtreme
(Player(((Integer A) + 1))))

You are setting the upgrade for the player number + 1. Move that + 1 to the research level instead, using arithmetics.
11-26-2006, 08:59 PM#5
turondo
i'm having trouble with that.. i cant seem to just isolate it to (Player(((Integer A)))) + 1) it just keeps reverting back to this (Player(((Integer A) + 1)))) and if i just use Player((Integer A)))) it wont let me add anything...

what am i doing wrong?
11-27-2006, 03:14 PM#6
Fireeye
i took a close look and it looks like, you set the Integer A + 1 and not the current research level, you have to use it this way
Current research level of <Replace with your Tech> for (Player((Integer A)))+1
instead of
Current research level of <Replace with your Tech> for (Player(((Integer A) + 1)))