mrgreenroom
17 years ago
am trying to make the enimy on my map create units
have salvaged script of original mission maps but still cant find a way to make the enimy create units from their building


and as well as my spelling being awful i cant seem to attach my map as its the wrong type of file
there are only three things worth waiting for explosions, food and lots of tanks
Sponsor
Drummin
17 years ago
Right-click on your map file and select Send To... Compressed (Zipped) Folder. Then you should be able to attach the file to your post.
Also see topic  and download my simple sample. It might help.
mrgreenroom
17 years ago
ok here is my map its just a test bed sortof thing and so are trying to put as many interesting effects on it as possible
ok here goes   tryout.zip (13kb) downloaded 3 time(s).
there are only three things worth waiting for explosions, food and lots of tanks
Drummin
17 years ago
PART of the problem was that units you had placed on the map were being recruited to the teams you were trying to create. So as far as the ArmsDealer (Really team creation) was concerned, the team had already been built. In any case, I changed a few things and hopefully this will get you going in the right direction.   Retryout.zip (23kb) downloaded 3 time(s).
towns1
  • towns1
  • 97.25% (Exalted)
  • Captain
17 years ago
how to set a scip to work evrytime the conditon is true?
Drummin
17 years ago
A script can be left to always be active by Un checking "deactivate upon success". This for example is best used on a subroutine script that tells " to hunt". This script could then be used by many different teams and is always active.

In most cases though you really don't want the script always active. You instead want to ping the script to check the condition. Here's an example.

ScriptOne - Setting [ns A D]
*** IF ***
    Player 'player0' has units in  area 'The Detection Zone'.
*** THEN ***
  Set Flag named 'Player0 Units in area' to TRUE
  Enable Script 'CheckTwo'.

ScriptTwo - Setting [ns na D]
*** IF ***
    Player 'player0' has doesn't have units in  area 'The Detection Zone'.
*** THEN ***
  Set Flag named 'Player0 Units in area' to FALSE
  Enable Script 'CheckOne'.

You really don't want a script pinging the same condition and action as this will cause huge lag. So if can't find condition that is opposite, then use the same condition, remove all text from the "Actions If True" side of the script (the default action) and use the "Actions If False" side of the script.
towns1
  • towns1
  • 97.25% (Exalted)
  • Captain
17 years ago
i wont to have base allarm saund evrytime i has ben attarked


what is flag name?
Users browsing this topic