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

[Trigger] Stop a training Unit

Status
Not open for further replies.
events
unit - a unit starts training a unit
conditions
actions
if, then, else - mulitple conditions are true
if - conditions
integer is smaller or equal to ur value
then - actions
unit - order unit to stop

something like this
u should search the stop the order actions under category units or if there is, dont remember right now (xD), under orders
 
Level 12
Joined
Jun 28, 2008
Messages
688
I don't think ordering a building to stop will cancel resreach.

Do what he said, but rather than using "unit- order unit to stop", do

Selection - Select Triggering Unit for Owner of Triggering Unit
Player - Force UI Key (Esc)

I'm not sure of the exact Player action, but it's something close to that. Forcing the player to press the Esc key will cancel any upgrades, training, or researches.
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
sry for the post up there, my firefox didnt let me submit things, only this one, i could not edit it after posting it:

HERE IS THE SOLUTION
JASS:
Order Unit to Stop
doesnt affects training issues, as staberfire said.

I found a way some time ago, thanks to waterknight from inwarcraft.de

Her it is, i posted it some months ago in the World Editor Help zone i think

  • Immedaite Stop
  • Events
  • Einheit - A unit starts training an unit
  • Conditions
  • Actions
  • // this Custom script will cause the building to stop immediatly
  • Custom script: call IssueImmediateOrderById( GetTriggerUnit(), 851976 )
Greets
 
Status
Not open for further replies.
Top