Make Unit-Type Unavailable for training.

danpe

New Member
Reaction score
5
pause all buidings owned by player 1, they won't be able to do anything until you unpause them

I assume something like this would work

Trigger:
  • untitled trigger
    • actions
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Picked unit) is A structure) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Pause (Picked unit)


But i dont want to pause the building... the building can train other units just not those...

I tried that also and still nothing:

Trigger:
  • Map inizilazation
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Cinematic - Turn cinematic mode On for (All players) over 5.00 seconds
      • Cinematic - Fade out and back in over 5.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Cinematic - Disable user control for (All players)
      • Game - Display to (All players) for 3.00 seconds the text: Initializing game.....
      • Set TEMP_PreloadSpawnPoint = (Center of NO BUILD 1 <gen>)
      • Set AllUnits[0] = Murloc
      • Set AllUnits[1] = Troll
      • Set AllUnits[2] = Footman
      • Set AllUnits[3] = Grunt
      • Set AllUnits[4] = Coualt
      • Set AllUnits[5] = Small golem
      • Set AllUnits[6] = Kodo beast
      • Set AllUnits[7] = Small tornado
      • Set AllUnits[8] = Elvish runner
      • Set AllUnits[9] = Ogre
      • Set AllUnits[10] = Gargoyle
      • Set AllUnits[11] = Siege vehicle
      • Set AllUnits[12] = Naga mermaid
      • Set AllUnits[13] = Ancient hydra
      • Set AllUnits[14] = Tauren
      • Set AllUnits[15] = Priest
      • For each (Integer A) from 0 to 15, do (Actions)
        • Loop - Actions
          • Custom script: call SetPlayerTechMaxAllowed(Player(0),udg_AllUnits[bj_forLoopAIndex-1],0)
          • Player - Make AllUnits[(Integer A)] Unavailable for training/construction by Player 1 (Red)
      • Wait 3.00 seconds
      • Cinematic - Turn cinematic mode Off for (All players)
      • Cinematic - Enable user control for (All players)
      • Trigger - Run Timer <gen> (ignoring conditions)
 

foodflare

You can change this now in User CP.
Reaction score
32
try using Player - Limit training of AllUnits[(Integer A)] to 0 for Player 1 (Red) and you can change it higher limit later
 

danpe

New Member
Reaction score
5
Still doesn't work...
i use this:

Trigger:
  • For each (Integer A) from 0 to 15, do (Actions)
    • Loop - Actions
      • Game - Display to (All players) the text: (String(AllUnits[(Integer A)]))
      • Player - Limit training of AllUnits[(Integer A)] to 0 for Player 1 (Red)
      • Custom script: call SetPlayerTechMaxAllowed(Player(0),udg_AllUnits[bj_forLoopAIndex-1],0)
      • Player - Make AllUnits[(Integer A)] Unavailable for training/construction by Player 1 (Red)


the
Trigger:
  • Game - Display to (All players) the text: (String(AllUnits[(Integer A)]))


sais:

custom_h001
custom_h02B
custom_h009
custom_h005
and so on...
is this a problam?
 

foodflare

You can change this now in User CP.
Reaction score
32
did you select the right units in the trigger/building where you get them? they have to be the same unit types because i know the limit training... thing works
 

danpe

New Member
Reaction score
5
yup same unit type and selected the right building...
something is fucking up here...

any ideas?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top