| 03-03-2004, 09:16 PM | #1 |
I'm a little mixed up on the event responce for finishing an upgrade. The only sensible repsonce would be 'researching unit', but then research and upgrade are two different things. Should I just use 'triggering' unit or what? Here's a detailed look at the trigger action: Code:
If (((Researching unit) belongs to an ally of Player 6 (Orange)) Equal to True) then do (Player Group - Pick every player in (All allies of (Triggering player)) and do (Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for (Triggering player)) for (Picked player))) else do (Player Group - Pick every player in (All enemies of (Player 6 (Orange))) and do (Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech- type) for (Triggering player)) for (Picked player))) |
| 03-03-2004, 09:25 PM | #2 |
Wow that little scroll bar is annoying. Can you try to get rid of it so i can read it better? Anywho, what exactly are you trying to do? IF you can tell me these i can probably help. |
| 03-03-2004, 10:12 PM | #3 | |
Quote:
I'm trying to do shared researching. Ie, If one player on a team researches something, all benefit from it on that team (by setting it to researched for them). Maybe my trigger is long winded, or the event responces don't agree... |
| 03-03-2004, 10:26 PM | #4 |
e. unit finishes a research a. set research level for (reasearchd type) to research level same as player1 reasearch level of (researchd type) I couldnt remember the exact terms how to do it, but thats it. Ill open editor if you still cant get it |
| 03-03-2004, 11:07 PM | #5 |
I think the problem you are facing is using triggering player. Instead do GetOwningPlayer(GetResearchingUnit()). BTW WH are you ever going to have anything for me to help you with on your AOS? |
| 03-03-2004, 11:56 PM | #6 |
Code:
Untitled Trigger 001
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to YourResearchHere
Actions
Game - Display to (All allies of (Triggering player)) the text: ((Name of (Triggering player)) + ( Has Researched + YourAbilityHere))
Player Group - Pick every player in (All allies of (Triggering player)) and do (Actions)
Loop - Actions
Player - Set the current research level of YourResearchHere to (Current research level of YourResearchHere for Player 1 (Red)) for (Picked player)Make sure that the set research level is for everyoune you want to be affected by the research has their own event or find a way to make it so theay all get the research I just tested it by using iron forged swords and it sends the message any my ally with only one footman has it researched when i did it. |
| 03-04-2004, 03:57 PM | #7 |
Update: I came up with this.. lets just hope it likes my loops. Code:
Research
Events
Unit - A unit Finishes research
Conditions
Actions
Set tempresearch = (Current research level of (Researched tech-type) for (Owner of (Researching unit)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Team number of (Owner of (Researching unit))) Equal to 1
Then - Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Player - Set the current research level of (Researched tech-type) to tempresearch for (Player((Integer A)))
Else - Actions
For each (Integer B) from 7 to 12, do (Actions)
Loop - Actions
Player - Set the current research level of (Researched tech-type) to tempresearch for (Player((Integer B))) |
