• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Stop a training Unit

Status
Not open for further replies.
Level 24
Joined
Jun 16, 2008
Messages
1,939
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