• 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.

Could someone help me with this trigger ?

Status
Not open for further replies.
Level 3
Joined
Dec 16, 2008
Messages
9
Quest System help with knowing if it leaks or not

  • Events
    • Map initialization
  • Actions
    • -------- --------
    • Set QInteger = (QInteger + 1)
    • Set QTitle[QInteger] = Vercas Revenge
    • Set QDescription[QInteger] = KILL 1 FOOTMAN!
    • Set QItem[QInteger] = Footman
    • Set QHunt[QInteger] = Footman
    • -------- --------
    • Set QInteger = (QInteger + 1)
    • Set QTitle[QInteger] = Sniper of Shadows
    • Set QDescription[QInteger] = KILL 1 RIFLEMAN!
    • Set QItem[QInteger] = Rifleman
    • Set QHunt[QInteger] = Rifleman
    • -------- --------
    • Set QInteger = (QInteger + 1)
    • Set QTitle[QInteger] = Greedy Crusade
    • Set QDescription[QInteger] = KILL 1 KNIGHT!
    • Set QItem[QInteger] = Knight
    • Set QHunt[QInteger] = Knight
    • -------- --------
    • Set QIntegerMax = QInteger
    • -------- --------
  • Events
    • Unit - A unit Acquires an item
  • Actions
    • For each (Integer I) from 1 to QIntegerMax, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • And - All (Conditions) are true
              • Conditions
                • (Item-type of (Item being manipulated)) Equal to QItem[I]
                • (Number of units in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))) and ((Unit-type of (Matching unit)) Equal to QHunt[I])))) Equal to 0
          • Then - Actions
            • -------- --------
            • Cinematic - Clear the screen of text messages for (Player group((Owner of (Triggering unit))))
            • -------- --------
            • Game - Display to (Player group((Owner of (Triggering unit)))) for 30.00 seconds the text: (QTitle[I] + :)
            • Game - Display to (Player group((Owner of (Triggering unit)))) for 30.00 seconds the text: ( - + QDescription[I])
            • -------- --------
            • Unit - Create 1 QHunt[I] for (Owner of (Triggering unit)) at (Center of (Playable map area)) facing 270.00 degrees
            • Unit - Pause (Last created unit)
            • -------- --------
          • Else - Actions
  • Events
    • Unit - A unit Dies
  • Actions
    • For each (Integer I) from 1 to QIntegerMax, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • And - All (Conditions) are true
              • Conditions
                • (Unit-type of (Triggering unit)) Equal to QHunt[I]
                • (Number of units in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to (Owner of (Killing unit))) and ((Unit-type of (Matching unit)) Equal to QHunt[I])))) Equal to 1
          • Then - Actions
            • -------- --------
            • Cinematic - Clear the screen of text messages for (Player group((Owner of (Killing unit))))
            • -------- --------
            • Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: Q U E S T C L E A R...
            • -------- --------
            • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to (Owner of (Killing unit))) and ((Unit-type of (Matching unit)) Equal to QHunt[I]))) and do (Actions)
              • Loop - Actions
                • Unit - Remove (Picked unit) from the game
            • -------- --------
            • Player - Add 50 to (Owner of (Killing unit)) Current gold
            • Hero - Add 30 experience to (Killing unit), Hide level-up graphics
            • -------- --------
          • Else - Actions
VARIABLES:
I = Integer
QDescription = String Array (0)
QHunt = Unit-Type Array (0)
QInteger = Integer
QIntegerMax = Integer
QItem = Item-Type Array (0)
QTitle = String Array (0)

WHAT IT DOES:
Well it is a code for making quest by not using Quest Triggers cause it takes alot of space, it uses Integer and Strings instead . BUT i dont know if it is MUI nor MPI . and especially the code "For each (Integer I) from 1 to QIntegerMax, do (Actions)" i dont know if this code here leaks or not so please someone help me here ? :3 I JUST WANT TO KNOW IF IT LEAKS OR NOT THX :)
 
Last edited:
Status
Not open for further replies.
Top