- Joined
- Apr 23, 2011
- Messages
- 322
So, when a unit is ordered to attack ground, but level of "flame strike" of triggering unit is equal to 3 or less, it stops.Need that trigger
This might help you: Detecting Attack Ground
didn't help...
This spell detects an instance of Attack Ground, maybe you can copy the trigger when it detects an Attack Ground just give credits to the creator:
Attack Ground
That is my backup
I was thinking of a simpler way of detection
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 =)
What about:
I'm not sure about the condition, but there is something like that. I just used it in a trigger recently.
- 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 don't know Jass ;_;
851984
GetIssuedOrderId() == 851984
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?Well...I know a bit of jass, but not vjass
qustion:does jass work normaly in a normal WE or it needs JNPG?
I can give you its order id:851984
You can check it viaGetIssuedOrderId() == 851984
You can try JB_McKnight's trigger with small modification, pause unit, order stop, unpause.
if GetIssuedOrderId() == 851984 and GetUnitAbilityLevel(GetTriggerUnit(), SomeAbilityThatIsAnAscii) >= 2 then
//Codes XD
endif
JASS:if GetIssuedOrderId() == 851984 and GetUnitAbilityLevel(GetTriggerUnit(), SomeAbilityThatIsAnAscii) >= 2 then //Codes XD endif
Did you replace SomeAbilityThatIsAnAscii with your Ability raw code? like 'AHtc' with the " ' " sign
if GetIssuedOrderId() == 851984 and GetUnitAbilityLevel(GetTriggerUnit(), 'A057') >= 2 then
//Codes XD
endif
Maybe the above codes are wrong,the codes previous to the if line.
you shouldnt delete those lines, it will not work if you delete those lines(unless you are using JNGP)
even then, simple if block within no scope will not work
|
^ Why notthen? If you are going to use Pure JASS,you need function blocks.
- Custom script
|
|