• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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

  • 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
 
Status
Not open for further replies.
Back
Top