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

Cancel Research by Trigger

Status
Not open for further replies.
Level 2
Joined
May 11, 2008
Messages
4
Oke, so I'm Making a Troll alike map, but for most researches and units you also need items in the inventory of the researching / training unit. With the training units it's going fine, but with the part of the Researching it's not.

I just want to know how you can cancel a research of researching with a trigger, I tried to hide the unit, and use "Issue unit with no target > Stop", but it's all not working =//, Thanks if you can help :)

http://lowpolycommunity.com/hosting/files/114.jpg

(PS, sorry about doing the triggers in a picture, but I don't know how the (Trigger)(/Trigger) works, (I know, it's with [ instead ())
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 002
    • Events
      • Unit - A unit Begins research
    • Conditions
      • (Researched tech-type) Equal to Animal War Training
      • (u1 has an item of type Claws of Attack +15) Equal to False
    • Actions
      • Custom script: call IssueImmediateOrderById( GetTriggerUnit( ), 0xD0008 )
      • Game - Display to (Player group((Triggering player))) the text: |cffffcc00You must ...
You must have that item to be able to do that research.
 
Level 2
Joined
May 11, 2008
Messages
4
  • Untitled Trigger 002
    • Events
      • Unit - A unit Begins research
    • Conditions
      • (Researched tech-type) Equal to Animal War Training
      • (u1 has an item of type Claws of Attack +15) Equal to False
    • Actions
      • Custom script: call IssueImmediateOrderById( GetTriggerUnit( ), 0xD0008 )
      • Game - Display to (Player group((Triggering player))) the text: |cffffcc00You must ...
You must have that item to be able to do that research.

Thanks for the quick reaction

Then, I guess that the 0xD0008 Is the cancel command?

EDIT: Dude, you're awesome this works :D
 
Status
Not open for further replies.
Top