.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

Reply
 
Thread Tools Display Modes
  #1  
Old October 27th, 2006, 09:36 PM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default Re: You\'re thoughts please!

Thats what I had been doing. It would be a pain to manage as the base scripts change though, would have to merge them into the new script.
Reply With Quote
  #2  
Old October 28th, 2006, 04:55 AM

pujal pujal is offline
Private
 
Join Date: Oct 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
pujal is on a distinguished road
Default Re: You\'re thoughts please!

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??
Reply With Quote
  #3  
Old October 28th, 2006, 10:35 AM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default Re: You\'re thoughts please!

Is there a way, in a csf script, to get what turn you are on? i.e 5,10,15?
Reply With Quote
  #4  
Old October 28th, 2006, 12:13 PM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: You\'re thoughts please!

There are several date related references in the script sections of MainStrings.txt.

As for how to use them... haven't a clue.
Reply With Quote
  #5  
Old October 28th, 2006, 12:15 PM

Raapys Raapys is offline
First Lieutenant
 
Join Date: Jan 2005
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
Raapys is on a distinguished road
Default Re: You\'re thoughts please!

Code:
set gbl_ai_state_date_of_last_attack_state := sys_long_Game_Date



Suppose sys_long_Game_Date is the current date, then? And Sys_Get_Game_Start_Date could be used to get the start date.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.