Digging through the ai scripts, found this:
Code:
//------------------------------------------------------------------------
// Compute_Spending_Resources
//------------------------------------------------------------------------
function Compute_Spending_Resources returns boolean
params
vars
total_resources: Resources
begin
return TRUE
call total_resources.clear()
call total_resources.Add(Sys_AI_Empire_Stats_Get_Curren t_Resources(sys_long_Player_ID))
call total_resources.Subtract(Sys_AI_Empire_Stats_Get_T otal_Queue_Usage_Per_Turn(sys_long_Player_ID))
call gbl_resources_vehicles.assign(total_resources)
call gbl_resources_vehicles.multiply(lng_Overall_Spendi ng_Pct_Vehicle_Construction / 100)
call gbl_resources_units.assign(total_resources)
call gbl_resources_units.multiply(lng_Overall_Spending_ Pct_Unit_Construction / 100)
call gbl_resources_facilities.assign(total_resources)
call gbl_resources_facilities.multiply(lng_Overall_Spen ding_Pct_Facility_Construction / 100)
end
Correct me if I'm wrong, but this code is never run in the begin/end statements as it returns right at the beginning??