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

[Solved] Trigger-Detect attack ground gui

Status
Not open for further replies.
Level 8
Joined
Apr 23, 2011
Messages
322
no no no
I wrote flame strike as an example, it's meant to be any spell
the point is, if the unit you ordered to attack ground will stop unless its "whatever ability" is under lvl 4.(let's say that that ability's max level is 10 and it needs to be lvl5 so the unit can attack ground)
"attack ground" as an order, unit is artillery
 
Level 16
Joined
Nov 7, 2011
Messages
219
What about:
  • Events
  • Unit - A unit is issued an order targeting a point
  • Conditions
  • Order of issued unit equal to attack ground
  • Actions
  • Trigger - Turn off this trigger (to make sure this trigger doesn't crash the game)
  • Unit - Order triggering unit to stop (issue an order without a target)
  • Trigger - Turn on this trigger (to allow the trigger to run again)
I'm not sure about the condition, but there is something like that. I just used it in a trigger recently.

I don't know Jass ;_;
 
Level 8
Joined
Apr 23, 2011
Messages
322
I cant think of an easier way because there is no event or condition that can detect an attack. Its either you learn JASS because it has additional features such as those detections or try the spell I linked to you =)

Well...I know a bit of jass, but not vjass
qustion:does jass work normaly in a normal WE or it needs JNPG?

What about:
  • Events
  • Unit - A unit is issued an order targeting a point
  • Conditions
  • Order of issued unit equal to attack ground
  • Actions
  • Trigger - Turn off this trigger (to make sure this trigger doesn't crash the game)
  • Unit - Order triggering unit to stop (issue an order without a target)
  • Trigger - Turn on this trigger (to allow the trigger to run again)
I'm not sure about the condition, but there is something like that. I just used it in a trigger recently.

I don't know Jass ;_;

Didn't work :p
 
I can give you its order id: 851984

You can check it via GetIssuedOrderId() == 851984

Well...I know a bit of jass, but not vjass
qustion:does jass work normaly in a normal WE or it needs JNPG?
JASS is the default programming language of WE. Go to Edit > Convert Trigger to Custom Text. Why would Blizzard implement Custom script if it requires JNGP in the first place?

btw, its JNGP not JNPG. Its not Jass New Pack Gen but Jass New Gen Pack.
 
Level 8
Joined
Apr 23, 2011
Messages
322
I can give you its order id: 851984

You can check it via GetIssuedOrderId() == 851984

Could you make me a jass version of "stop attack ground, unless level of [whatever aqbility] is lvl 2 or higher"?

You can try JB_McKnight's trigger with small modification, pause unit, order stop, unpause.

If this is what you meant, it didn't work *sad shade*.I probably didn't make it right.
  • no ground attack
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Issued order) Equal to (Order(attack ground))
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Unpause (Triggering unit)
 
Level 8
Joined
Apr 23, 2011
Messages
322
I give up make me a test map
9eaac04b5862ed238278c47a165cb7ba-276x320.png

also, brb 30 min
 
Level 37
Joined
Mar 6, 2006
Messages
9,243

  • Untitled Trigger 105
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Issued order) Equal to (Order(attackground))
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit Group - Add (Triggering unit) to group
      • Trigger - Turn on Untitled Trigger 106 <gen>
  • Untitled Trigger 106
    • Events
      • Time - Every 0.00 seconds of game time
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit Group - Pick every unit in group and do (Actions)
        • Loop - Actions
          • Unit Group - Remove (Picked unit) from group
          • Unit - Order (Picked unit) to Stop
          • Unit - Unpause (Picked unit)
 
Last edited:
Status
Not open for further replies.
Top