HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Permanently on the Learn Hero Ability menu.

02-09-2008, 07:59 AM#1
Jazradel
I can use this:
Trigger:
Game - Force (Owner of (Triggering unit)) to press the key o
To load the menu when the hero is selected or when a skill is learned, but I can't detect when the user manually cancels the menu.

Any suggestions on how to do this, or even better to remove the cancel button.
02-09-2008, 03:24 PM#2
Ammorth
use a repeating timer of 0.01 second to continually press the o key. Just make sure one of the learn spells does not have the hotkey of o.
02-09-2008, 03:55 PM#3
Rising_Dusk
You can detect it, it's an order. Just check on an issued order event and do a check between the order's ID and GetIssuedOrderId(). If you're confused as to what Order ID you should check for, use the following trigger and cancel the hero skill selection, it should display the ID.

Trigger:
Get Order
Collapse Events
Unit - A unit Is issued an order with no target
Conditions
Collapse Actions
Custom script: call BJDebugMsg("Order: " + I2S(GetIssuedOrderId()))
GUI doesn't matter, since it's just for testing purposes.
02-09-2008, 09:33 PM#4
Jazradel
I tried detecting the order, it doesn't display anything.

I could use a repeating timer, but it's messy.

This question is pointless now anyway since what I need it for no longer works due to other reasons.