Posted by: skrinimator - Sunday, February 7, 2010 5:29:25 AM
i want to put a time limit before a team goes hunting how do i do that?

Posted by: Drummin - Sunday, February 7, 2010 6:53:11 AM
Flags are the best way to control a Subroutine, so if you are using a script that says [code]*** IF *** True. *** THEN *** Team '' begins hunting. [/code] Make another script to initialize or set the flag to zero. [code]*** IF *** True. *** THEN *** Set Flag named 'StartHunt' to FALSE[/code] Then have your timer set the flag to true. [code]*** IF *** Timer 'HuntingTimer' has expired. *** THEN *** Set Flag named 'StartHunt' to TRUE[/code] Apply this flag to your Hunt script. [code]*** IF *** Flag named 'StartHunt' IS TRUE *** THEN *** Team '' begins hunting. [/code] Use this script for the On Create behavior for the team.

Posted by: skrinimator - Monday, February 8, 2010 12:51:48 PM
THanks that helped, one more thing, can i set an option where the player (me) can't build a specific building like a war factory or an airfield?

Posted by: Drummin - Monday, February 8, 2010 12:57:36 PM
Yes, you'll find this Action under Map/Modify/Adjust the tech tree for a specific object type. This script would go in the PlyrCivilian folder. [code]*** IF *** True. *** THEN *** 'AmericaAirfield' becomes Buildable (No) 'AmericaWarFactory' becomes Buildable (No)[/code]

Posted by: skrinimator - Wednesday, February 10, 2010 12:24:36 PM
[quote=drummin]Flags are the best way to control a Subroutine, so if you are using a script that says [code]*** IF *** True. *** THEN *** Team '' begins hunting. [/code] Make another script to initialize or set the flag to zero. [code]*** IF *** True. *** THEN *** Set Flag named 'StartHunt' to FALSE[/code] Then have your timer set the flag to true. [code]*** IF *** Timer 'HuntingTimer' has expired. *** THEN *** Set Flag named 'StartHunt' to TRUE[/code] Apply this flag to your Hunt script. [code]*** IF *** Flag named 'StartHunt' IS TRUE *** THEN *** Team '' begins hunting. [/code] Use this script for the On Create behavior for the team.[/quote] He4y it's me again, last time when i wrote "thanks that helped" i was rushing, i wanted to know where i can find the "flags" and the script to set them to zero...would be very appreciated :)

Posted by: Drummin - Wednesday, February 10, 2010 12:36:25 PM
If you're using Zero Hour it's under Scripting/Flags/Set flag to a value. Generals is a little different but should be listed under Scripting.