svarionare
  • svarionare
  • 74.75% (Friendly)
  • Private Topic Starter
15 years ago
Hi to everyone!
I know that it can seem a stupid question,but which is the aim of using scripts like this:

*** IF ***
True.
*** THEN ***
Null operation. (Does nothing.)


either SAnd or nsAD?

Bye
Sponsor
BR-Alexandre
15 years ago
i've not understand this but if you get a script like that in SAnd on a team's build condition the AI will keep building it until run out of credits

as i still learning use WB, soon i'll find more uses to that kind of script
"The Only Way To Have Peace is Prepare for War" <---I forgot who said this...
"Lasers make superior weapons!" <--- Townes
"Laser crusader ready for engagement" <--- Laser Crusader Tank
"Tactical lasers online" <--- Avenger Support Venhice
"Storm climbed mountain" <--- Pathfinder Elite Infantry
"Ready for covert mission" <--- Stealth Fighter Tactical Support
Drummin
15 years ago
Well, Null operation. (Does nothing.) obviously does nothing. It is simply the default script waiting for values to be added. Whether it is a subroutine or not.
svarionare
  • svarionare
  • 74.75% (Friendly)
  • Private Topic Starter
15 years ago
I have found that script in a context, I mean with other scripts connected to it such as a set of scripts made to spawn teams in AOD maps,but in other cases can it be used and what is its function?
Drummin
15 years ago
A non defined subroutine script with the action of NULL operation (Does Nothing) can be a used as a trigger script to build a team. So say I have a script like that called "team1". I then have another script that says Run subroutine script "team1". In the team editing section I make a new team and call it "team1" and for the "Production Condition", I select the blank subroutine script I made called "team1". See what's happening? When that script is called to run, even though the script has the action of NULL operation (Does Nothing) it was called and therefore the team will be built. So if a "NULL operation (Does Nothing)" type script is used as a production trigger it does have a function. See this post .
BR-Alexandre
15 years ago

can be a used as a trigger script to build a team.

Drummin wrote:



Just what i said in my post.just want know, there any other thing that the "empty" script can do?

"The Only Way To Have Peace is Prepare for War" <---I forgot who said this...
"Lasers make superior weapons!" <--- Townes
"Laser crusader ready for engagement" <--- Laser Crusader Tank
"Tactical lasers online" <--- Avenger Support Venhice
"Storm climbed mountain" <--- Pathfinder Elite Infantry
"Ready for covert mission" <--- Stealth Fighter Tactical Support
Drummin
15 years ago

Just what i said in my post.just want know, there any other thing that the "empty" script can do?



I have found that script in a context, I mean with other scripts connected to it such as a set of scripts made to spawn teams in AOD maps,but in other cases can it be used and what is its function?



Sorry I didn't read the last post carefully enough. Hmm... a blank script... not that I can think of.
i^love^mixery
15 years ago
if you make it a subroutine you can use it as a building condition for teams and buildings.

this simply means plain 'NOW'.

this


Null operation. (Does nothing.) 

usually is only used for that purpose. you can see that in original mission maps too. or in the original AI scripts.
svarionare
  • svarionare
  • 74.75% (Friendly)
  • Private Topic Starter
15 years ago
Thank you to everyone,now I know a little more about WB !