[RESOLVED] Orders and Triggers

This is where all discussion of WC3 mapmaking should be held. This forum exists particularly for mapmaking needs. If you have a question on how something works or have need for some code review, this is the place to put it.
Locked
Hydrolisk
Keeper of the Keys
Posts: 408
Joined: Mon Feb 25, 2008 2:25 am
Location: Canada

[RESOLVED] Orders and Triggers

Post by Hydrolisk » Mon Jun 16, 2008 9:30 pm

If a trigger looked something like the following:

Code: Select all

Events: -Unit is issued order
Conditions: -Order = immolation_off
Actions: -Stuff
will the trigger still activate if the unit that was issued the order had no mana and therefore could not actually turn on the ability? Or will I have to check if the unit had enough mana myself?
Image

User avatar
Cold Phoenix
Keeper of the Keys
Posts: 449
Joined: Tue Jan 15, 2008 11:32 am

Re: Orders and Triggers

Post by Cold Phoenix » Mon Jun 16, 2008 10:13 pm

I don't think it will count as actually ordering the unit to do that because no mana overrides the order and stops you. I suppose it's similar to the way if you don't have enough mana to cast a spell the triggered effects won't take place.

So to answer your question, you'll probably have to check mana.
Your move.

Greenspawn
Keeper of the Keys
Posts: 434
Joined: Fri Jan 18, 2008 4:50 pm
Location: Massachusetts

Re: Orders and Triggers

Post by Greenspawn » Tue Jun 17, 2008 4:27 pm

Now here's a problem with some chest hair!

I think it WILL trigger because it will give the order, but the spell won't be cast.

So I agree with Phoenix. Check your mana before turning on your spell.
Last edited by Greenspawn on Wed Jul 02, 2008 1:04 am, edited 1 time in total.
Math is # |e^iπ|
"I can't imagine getting hit by a giant rock and not being maimed or crippled or ruined" -Dusk

Logue: Please replace the toilet paper when you use it all. For some reason my 5 year old son believes if it's not there he does not have to wipe.

Hydrolisk
Keeper of the Keys
Posts: 408
Joined: Mon Feb 25, 2008 2:25 am
Location: Canada

Re: Orders and Triggers

Post by Hydrolisk » Sat Jun 28, 2008 11:32 pm

Right, I did that and it works fine. Thanks.
Image

Locked

Return to “Custom Map Creation”