When planes attack

smileyguyx

Member
Reaction score
1
:(:(:(:(:(:(:(:(:(:(
I've created a trigger for spawn involving having a Monster amount (integer) and a monster type (unit type) and level (integer). Somehow though I've got a group of planes (one of my <3ing units) just spawning randomly moving over the path which other ground units move on perfectly fine as one huge cluster then reaching the end point then just spreading out.:confused::confused:
I have no clue what went wrong. Also how do people put their triggers into forums such as these?:banghead::banghead::banghead:
 

X-maul

AKA: Demtrod
Reaction score
201
wow wow wow easy on the smileys... well first off we need to see your trigger:
Step 1
attachment.php

Step 2
attachment.php
 

Attachments

  • Step 2.jpg
    Step 2.jpg
    137.5 KB · Views: 187
  • Step 1.jpg
    Step 1.jpg
    89.9 KB · Views: 211

smileyguyx

Member
Reaction score
1
I used 4 different triggers to make it work:
Code:
Time - Every 1.00 seconds of game time
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        Level Equal to 1
    Then - Actions
        Set Monster_Type = Matryoshka Basic
    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Level Equal to 2
            Then - Actions
                Set Monster_Type = Armoured Matryoshka
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Level Equal to 3
                    Then - Actions
                        Set Monster_Type = Steel Matryoshka
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                           So forth

Second Trigger
Time - Every 1.00 seconds of game time
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        Level Less than or equal to 10
    Then - Actions
        Set Monster_amount = (2 x (Level + 10))
    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Level Less than or equal to 20
                Level Greater than or equal to 11
            Then - Actions
                Set Monster_amount = (3 x (Level + 10))
            Else - Actions

3rd trigger
Player - Player 12 (Brown)'s Food used becomes Less than or equal to 0.00
Unit - Create Monster_amount Monster_Type for Player 12 (Brown) at (Center of Start <gen>) facing Default building facing degrees

4th
Player - Player 12 (Brown)'s Food used becomes Less than or equal to 0.00
Set Level = (Level + 1)
 

Tiber

Member
Reaction score
4
I didn't quite understand what's the problem. If you'd rephrase that I will try to help out.

From what I gather from the triggers you posted, it first sets what unit to spawn depending on the Level. After that it sets a number of units to spawn. The 3rd trigger tells the game when and where to spawn creeps, and the last trigger advances the level. I'm not noticing any errors, apart from some unoptimized code.

I'll add that you should merge the first two triggers together, as well as the last two triggers together. Actually, depending on how your map works, you might be able to merge all 4 triggers together (based on food used = 0 event).
 
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