Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline SkyMix_RMT  
#1 Posted : Friday, January 20, 2017 1:41:29 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
What do these do?

UserPostedImage
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Sponsor
Offline klingondragon  
#2 Posted : Friday, January 20, 2017 1:46:47 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
That's for giving a team a script. You can set your own conditions and actions and the team will run that script.
Offline acidbrain  
#3 Posted : Saturday, January 21, 2017 2:10:36 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
You can put scripts in generic like attack priorities, unit upgrades and a lot more, i once used it to stop teams from running under trains, in other words custom scripts.
One sidenote though...
Always be sure that you make a pulse of the scripts in generic so use a counter, flag, an external switch or Deactivate upon succes, if you use a common subroutine(without Deactivate upon succes) in generic it will keep executing to infininty so use Deactivate upon succes if you only use the script once or a counter/flag if you use it more then once.
Here is a counter/flag example:
Code:

*** IF ***
  Counter 'Hunt' IS Equal To  0
  *AND*Player '<This Player's Enemy>' has units in  area 'OuterPerimeter'. 
*** THEN ***
  Team '<This Team>' begins hunting.
  Set 'Hunt' to  1 

*** IF ***
  Flag named 'Hunt' IS FALSE
  *AND*Player '<This Player's Enemy>' has units in  area 'OuterPerimeter'.
*** THEN ***
  Team '<This Team>' begins hunting.
  Set Flag named 'Hunt' to TRUE


You have to reset the counter/flag in another generic script when the area is save again.
You can use Deactivate upon succes also btw but be sure to enable the subroutine again in another script.

Greetz

Edited by user Saturday, January 21, 2017 2:13:23 AM(UTC)  | Reason: Secret

Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
zero hour mad map maker on 1/21/2017(UTC)
Offline klingondragon  
#4 Posted : Saturday, January 21, 2017 5:32:18 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
Or you could have the script run every # seconds. (I did this once to make my an AOD team spawn itself again every 30 seconds, unless it was dead.)
Offline SkyMix_RMT  
#5 Posted : Saturday, January 21, 2017 9:38:47 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Weird because I once tried this and it didn't work:

UserPostedImage

http://i.imgur.com/7wbsXfs.jpg

The rangers just kept stacking in the same place even though it's set to apply every 5 seconds.
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.