Code:
Human Motivation
Events
Unit - A unit Begins an upgrade
Conditions
(Researched tech-type) Equal to Improving Worker Motivation
Actions
Set Unit_group_research1_owner[(Player number of (Owner of (Researching unit)))] = (Owner of (Researching unit))
Set Unit_group_research1[(Player number of Unit_group_research1_owner[(Player number of (Owner of (Researching unit)))])] = (Units owned by Unit_group_research1_owner[(Player number of (Owner of (Researching unit)))] of type Worker)
Set Improving_Lumber2[(Player number of Unit_group_research1_owner[(Player number of (Owner of (Researching unit)))])] = (Improving_Lumber2[(Player number of (Owner of (Researching unit)))] + 1)
Unit Group - Pick every unit in Unit_group_research1[(Player number of Unit_group_research1_owner[(Player number of (Owner of (Researching unit)))])] and do (Actions)
Loop - Actions
Unit - Set level of Harvest (Gold and Lumber) for (Picked unit) to Improving_Lumber2[(Player number of Unit_group_research1_owner[(Player number of (Owner of (Researching unit)))])]
Game - Display to (Player group(Unit_group_research1_owner[(Player number of (Owner of (Researching unit)))])) for 5.00 seconds the text: (Improving Worker Motivation Level + ((String((Current research level of Improving Worker Motivation for (Owner of (Researching unit))))) + researched.))
This code doesn't seemd to be working =/
ive made this trigger to detect the upgrade when its researched
but i set a game text writing [Upgrade complete manually] then it doesn't show up that means its not working =/
coz i set owner of bla bla bla
set the event to finishes or anything still not working..