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

Quest Kills Check?

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
Hi guys i want you to check this why is it not working?

  • Arachnathid Hunter
    • Events
      • Dialog - A dialog button is clicked for AAA_Guilds_Dialog_Quest_RankA
    • Conditions
      • (Clicked dialog button) Equal to AAA_Guilds_DialogButon[10]
    • Actions
      • Set AAA_QuestGuildAcceptor[1] = (Triggering unit)
      • Quest - Create a Required quest titled Arachnathid Hunter with the description |cff00ff00The Arach..., using icon path ReplaceableTextures\CommandButtons\BTNArachnathidpurple.blp
      • Set AAA_QuestGuild[1] = (Last created quest)
      • Sound - Play QuestNew <gen>
      • Quest - Display to (Player group((Triggering player))) the Quest Update message: |cff00ff00The Arach...
  • Arachnathid Loop
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Arachnathid Earth-borer
          • (Unit-type of (Dying unit)) Equal to Overlord Arachnathid
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Killing unit) Equal to AAA_QuestGuildAcceptor[1]
        • Then - Actions
          • Set AAA_QuestGuildKills[1] = (AAA_QuestGuildKills[1] + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • AAA_QuestGuildKills[1] Equal to 20
            • Then - Actions
              • Quest - Mark AAA_GuildQuests[1] as Completed
              • Quest - Display to (Player group((Owner of (Killing unit)))) the Quest Update message: Wonderful, a true s...
              • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: (Arachnathid Kills: + (((Name of (Dying unit)) + 1) + /1))
              • -------- Dialog Comes here --------
              • Dialog - Clear AAA_QuestGuild_Dialog
              • Dialog - Change the title of AAA_QuestGuild_Dialog to Quest Completed.
              • Dialog - Create a dialog button for AAA_QuestGuild_Dialog labelled Go back to guild an...
              • Set AAA_QuestGuild_DialogButton[1] = (Last created dialog Button)
              • Dialog - Create a dialog button for AAA_QuestGuild_Dialog labelled Stay and collect re...
              • Set AAA_QuestGuild_DialogButton[2] = (Last created dialog Button)
              • Dialog - Show AAA_QuestGuild_Dialog for (Triggering player)
            • Else - Actions
        • Else - Actions
  • Arachnathid Go back
    • Events
      • Dialog - A dialog button is clicked for AAA_QuestGuild_Dialog
    • Conditions
      • (Clicked dialog button) Equal to AAA_QuestGuild_DialogButton[1]
    • Actions
      • Unit - Pause AAA_QuestGuildAcceptor[1]
      • Unit - Make AAA_QuestGuildAcceptor[1] Invulnerable
      • Wait 3.00 seconds
      • Unit - Move AAA_QuestGuildAcceptor[1] instantly to (Center of Region 061 <gen>)
      • Unit - Make AAA_QuestGuildAcceptor[1] Vulnerable
      • Unit - Unpause AAA_QuestGuildAcceptor[1]
      • Hero - Add 5000 experience to AAA_QuestGuildAcceptor[1], Show level-up graphics
      • Player - Add 2500 to (Triggering player) Current gold
  • Arachnathid Stay
    • Events
      • Dialog - A dialog button is clicked for AAA_QuestGuild_Dialog
    • Conditions
      • (Clicked dialog button) Equal to AAA_QuestGuild_DialogButton[1]
    • Actions
      • Hero - Add 5000 experience to AAA_QuestGuildAcceptor[1], Show level-up graphics
      • Player - Add 2500 to (Triggering player) Current gold
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
you can do this

  • Custom script : set bj_wantDestroyGroup = True
  • Unit Group - Pick every unit in (Unit owned by (Triggering player)) matching ((Matching unit is a hero) Equal to True)
    • Loop - Actions
      • Set AAA_QuestGuildAcceptor[1] = (Picked unit)
but if each player has 2 heroes, then this won't work :)
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
you can do this

  • Custom script : set bj_wantDestroyGroup = True
  • Unit Group - Pick ever unit in (Every unit owned by (Triggering player)) matching (Matching unit is a hero) Equal to True
    • Loop - Actions
      • Set AAA_QuestGuildAcceptor[1] = (Picked unit)
Where should i put it?
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
  • Custom script : set bj_wantDestroyGroup = True
]

Can i delete this is cause error in my game

do you mean fatal error ?

then do this instead.

  • Set tempGroup = (Units Owned by (Triggering Player) matching ((Matching unit) is a hero) Equal to True))
  • Unit Group - Pick every unit in tempGroup then do actions else do actions
    • Then - Actions
      • Set AAA_QuestGuildAcceptor[1] = (Picked unit)
  • Custom script : call DestroyGroup(udg_tempGroup)
let me know if it's also making error. then something must be wrong.
 
Status
Not open for further replies.
Top