| 12-09-2004, 03:20 PM | #1 |
Hi, I posted a thread earlier regarded getting a spell ID when the ability was learnt and/or cast, a few people tried to help and i appreciate it but it never made a lot of sense. basically what i need: when a unit casts or learns a spell either display spell id in a multiboard or as floating text, i need this to debug my map... follow trigger progression and track down errors. I have a huge favor to ask and would be forever grateful to anyone willing to help. Can some one make a simple map with 1 hero with 2 custom spells (just change the name of 2 normal spells) and have it so when he casts a spell or learns one the Spell ID registers in a multiboard or floating text? I would normally not ask but I have been toying with this for 2 and a half days and no progress... please, thank you for your consideration |
| 12-09-2004, 03:48 PM | #2 |
oooo never thought of this, here goes nothin Events Unit - A unit Begins casting an ability Conditions Actions Game - Display to (All players) the text: (Name of (Ability being cast)) or it could be multiboard action which is change the text to the Name of Ability being cast. Hope that helps! ![]() |
| 12-09-2004, 06:51 PM | #3 |
Here's the trigger to get the ID of a spell that is cast and have it display as a text message: Code:
Events A unit is issued an order targeting a point A unit is issued an order targeting an object A unit is issued an order with no target Conditions Actions: Custom SCript: call BJDebugMsg(I2S(GetIssuedOrderId())) |
| 12-09-2004, 07:07 PM | #4 |
what if the ability is an aura? |
| 12-09-2004, 07:10 PM | #5 |
then add an event - unit learns an ability |
| 12-09-2004, 09:04 PM | #6 |
You're not helping, HEZZA. That won't work because the actions are designed to work with order events. Umm, why do you need these things, anyway. Maybe I messed things up myself. :/ What I gave you is a way to determine the OrderID, but I'm really not sure if that's the same as spellID. Anyway, you need orderIDs to issue orders, so you really don't need to know them for auras, but I guess you want to use the spellIDs for something else; that's why I'm not sure if they are the same thing... |
| 12-10-2004, 03:04 PM | #7 |
if anyone (vexorian) knows how to get the spellid to be displayed on screen could you please help, i am stuck here. |
| 12-10-2004, 05:42 PM | #8 |
thats what the private messaging is for m8 |
