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

GUI coding for Unit Group Quest

Status
Not open for further replies.
Level 1
Joined
Aug 12, 2008
Messages
6
I recently just started making a campaign and this is the first time I've ever messed with the editor, I'm doing fine for the most part but I need help with setting up a unit group quest.


The only part of the trigger that is working for sure is its creating an Enforcer in region 1 a rogue in region 2 and another rogue in region 3.

I tried getting them put in a unit group but when I kill them all with the condition northbandits less than or equal to 0. It will not display the quest completion messsage or anything so something is going wrong in the middle portion.

I'm sure that there is a pretty easy code set up for this but I'm just not getting it lol. So any help would be appreciated. Thanks
 
Level 1
Joined
Aug 12, 2008
Messages
6
So, we need to proplerly help you the following: The actual problem + the trigger you are working on

Heres what I've got right now.

  • Event - Map Initialization
  • Action - Unit Create 1 Rogue for Neutral Hostile at Center of Bandit 2, facing 270 degrees
  • Action - Unit Create 1 Enforcer for Neutral Hostile at Center of Enforcer, facing 270 degrees
  • Action - Unit Create 1 Rogue for Neutral Hostile at Center of Bandit 1, facing 270 degrees
Action - Unit Group - Add all units in Bandits(region that surround them all) to last created unit group.

Also this last Rogue here is involved in another trigger where when I set foot in a region some distance before he kills a villager. I dont know if that would matter but I thought I'd throw that out there.

Quest Trigger

  • Event - A unit dies
  • Condition - Triggering Unit is in North_bandits(unit group variable) Equal to True
  • Action -
  • If - North_bandits less that or equal to 0
  • Then - Quest Mark Last Created Quest Completed
  • Quest Display etc etc.
I don't see where I'm messing this up lol.
 
Level 1
Joined
Aug 12, 2008
Messages
6
Still not working correctly. Each time a unit dies now it will say quest completed. I want it only to display when they have all died.
 
Level 1
Joined
Aug 12, 2008
Messages
6
After two days of messing with that unit group trigger I still can't get it to work correctly.

Another question I had was about game caches. I've tried creating one at the end of the first level to load the hero onto the second level with the correct items and level and everything but nothing ever appears.

I even tried copying the game caches triggers from the demo campaign and adjusting them accordingly but still I get nothing =/
 
Level 16
Joined
Feb 22, 2006
Messages
960
for your unitgroup problem try this:

event

map initialization

actions

create rogue (3 times)

set rogues = 3 (integer var)

next trigger
----------------------------

Event

A unit dies

Condition

Unit equal to rogue

Actions

Set rogue = rogue - 1
if

rogue = 0

then

quest complete

else
 
Level 1
Joined
Aug 12, 2008
Messages
6
for your unitgroup problem try this:

event

map initialization

actions

create rogue (3 times)

set rogues = 3 (integer var)

next trigger
----------------------------

Event

A unit dies

Condition

Unit equal to rogue

Actions

Set rogue = rogue - 1
if

rogue = 0

then

quest complete

else

Sorry I was on vacation for a few days but thanks for the input, I'll try this out and let you know what happens.
 
Status
Not open for further replies.
Top