• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Need help to fix copying triggers from other maps!

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2015
Messages
171
Hi, i wonder why my map got error after copy all trigger from other maps. I copy all triggers/spells and variable. Is there is something wrong with it? I attach the map that i want to copy all its trigger along with error code that i got.
error.png
 

Attachments

  • Axe's Berserker's Call.w3x
    16.6 KB · Views: 36
Level 6
Joined
Jan 2, 2015
Messages
171
  • BC Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set BCHash = (Last created hashtable)
  • BC Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berserker's Call
    • Actions
      • Set Unit[1] = (Triggering unit)
      • Set CasterLoc = (Position of Unit[1])
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 275.00 of CasterLoc matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Triggering player)) Equal to True))) and do (Actions)
        • Loop - Actions
          • Set Unit[2] = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Unit[2] Not equal to No unit
            • Then - Actions
              • Set HandleID = (Key (Picked unit))
              • Hashtable - Save Handle OfUnit[1] as (Key Caster) of HandleID in BCHash
              • Custom script: call UnitAddAbility(udg_Unit[1], 'A001')
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit[2] is in GroupBC) Equal to False
                • Then - Actions
                  • Unit Group - Add Unit[2] to GroupBC
                  • Special Effect - Create a special effect attached to the chest of Unit[2] using Abilities\Weapons\LavaSpawnMissile\LavaSpawnBirthMissile.mdl
                  • Set SFX = (Last created special effect)
                  • Hashtable - Save Handle OfSFX as (Key SFX) of HandleID in BCHash
                • Else - Actions
            • Else - Actions
      • Trigger - Turn on BC Loop <gen>
      • Trigger - Turn on BC Remove <gen>
      • Custom script: call RemoveLocation(udg_CasterLoc)
  • BC Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in GroupBC and do (Actions)
        • Loop - Actions
          • Set HandleID = (Key (Picked unit))
          • Set Unit[1] = (Load (Key Caster) of HandleID in BCHash)
          • Set SFX = (Load (Key SFX) of HandleID in BCHash)
          • Set Unit[2] = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit[2] has buff Berserker's Call ) Equal to True
            • Then - Actions
              • Unit - Order Unit[2] to Attack Unit[1]
            • Else - Actions
              • Custom script: call UnitRemoveAbility(udg_Unit[1], 'A001')
              • Unit - Order Unit[2] to Stop
              • Unit Group - Remove Unit[2] from GroupBC
              • Special Effect - Destroy SFX
              • Hashtable - Clear all child hashtables of child HandleID in BCHash
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in (Units in (Playable map area))) Equal to 0
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                  • Trigger - Turn off BC Loop <gen>
                • Else - Actions
  • BC Remove
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set HandleID = (Key (Triggering unit))
      • Set SFX = (Load (Key SFX) of HandleID in BCHash)
      • Unit Group - Remove (Triggering unit) from GroupBC
      • Special Effect - Destroy SFX
      • Hashtable - Clear all child hashtables of child HandleID in (Last created hashtable)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in (Playable map area))) Equal to 0
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn off BC Loop <gen>
        • Else - Actions
Here is my trigger from my map. i copy it exactly from berserker call map. i need some correction on this
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
Looks like the variables were not copied? At least that would explain all the name based errors.

Make sure "Automatically create unknown variables while pasting trigger data" is turned on. Delete what has already been copied across until no errors occur on save. Finally try to copy the triggers across again.
 
Status
Not open for further replies.
Top