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

Gaining an ally when completed quest

Status
Not open for further replies.
Level 6
Joined
Feb 10, 2005
Messages
223
well, I dont think it's the aspect of when he returns the item, I think it's the aspect that when you get that item the quest is completed, so do it like a unit obtains certain item (run trigger (other trigger))

other trigger:

event: unit enters region X

unit gets controll over other unit (see tooolbox' post)
 
Level 17
Joined
Apr 24, 2005
Messages
762
  • Quest
    • Events
      • Unit - Meteora 0642 <gen> Acquires an item
    • Conditions
      • (Item being manipulated) Equal to The heart of a Nerubian Queen 0118 <gen>
    • Actions
      • Quest - Mark (Last created quest) as Completed
      • Player - For Player 1 (Red), turn Full shared units On toward Player 2 (Blue)
Tell me what i did wrong here? The alliance wont change when the unit Meteora picks up the item.
 
Level 5
Joined
May 5, 2007
Messages
120
You have the players backwards I believe. In your trigger, player 2 gains control over player 1.
 
Level 5
Joined
May 27, 2007
Messages
132
Are you sure that this "meteora" is receiving the item and it's being put into inventory? Does the quest mark as complete? Or are all of the actions just being ignored?

Oh, and the condition. If the item has already been received by the NPC then it is not being manipulated I don't think. If you want to be sure, set it to a boolean comparison, and use a variable with the item stored there.
 
Level 17
Joined
Apr 24, 2005
Messages
762
That trigger i posted was about when the unit gets the item. Not that he gives i to an NPC. Although it would be better if some1 told me how to make a trigger about when he gives the item to the NPC then i would get alliance ( i just cant find an event about giving an item to another player)
 
Level 17
Joined
Apr 24, 2005
Messages
762
See my problem isnt the getting an ally part. I can do that just fine i just need to know how to enable the trigger WHEN THE UNIT GIVES THE NPC AN ITEM. right now im using when a unit enters the region at the front of the npc with the item in his inventory the quest will be completed.
 
Status
Not open for further replies.
Top