| 01-18-2006, 03:45 AM | #1 |
I'm trying to create a cloaking device that when activated, slowly drains mana. My idea was to base it off of the Immolation spell and use triggers to give the unit Permanent Invisibility & Ghost when activated, and remove it when deactivated. However, not only does it not seem to work, i cant seem to get rid of the immolation art effect. Here's my triggers: Code:
===Cloaking On=== EVENTS Unit - A unit begins casting an ability CONDITIONS (Ability being cast) equal to Cloaking Device ACTIONS Unit - Add Permanent Invisibility to (Triggering Unit) Unit - Add Ghost to (Triggering Unit) ====== ===Cloaking Off=== EVENTS Unit - A unit Finishes casting an ability CONDITIONS (Ability being cast) equal to Cloaking Device ACTIONS Unit - Remove Permanent Invisibility to (Triggering Unit) Unit - Remove Ghost to (Triggering Unit) ====== I've also tried "starts the effects of an ability" for the On event, to no avail. I also don't know the difference between Ghost and Permanent Invisibility or if I even need both. Any help would be much appreciated^^ |
| 01-18-2006, 04:42 AM | #2 |
i'm having the same problem, really, since its a toggle Power, you essentially finish casting it once you begin the effect. Im trying to end a few special effects myself at the end of a toggle =/ |
| 01-18-2006, 08:10 AM | #3 |
I think the only way to work with toggles is to detect orders (there's a different orderstring for turn on and off). Not sure if that works well with stun; while a unit is stunned, you can issue orders and only the last one will carry out when the unit un-stuns. Not sure if that's the same for toggle abilities, or do they activate/deactivate anyway. But there's another option, I think that while immolation is on, the unit gets a special buff, maybe you could check for that with a periodic trigger. |
| 01-18-2006, 08:15 AM | #4 |
Hmmm Okay first of all i think ghost ability makes a unit transparent without flagging it as invisible. If this is correct, then you only need permanent invis. Second - is the "immolation effect" a problem with immolation graphical effect or something else? Immolation graphics are modified via the buffs immolation gives. Third - for immolation removal detection you can use unit is issued an order with no target event (unimmolation has its own order string). Just make sure it works correctly when the unit is stunned :/ EDIT: Anitarf is fast :) |
| 01-18-2006, 03:30 PM | #6 |
I know Vexorian made activate-disable cloak in one of his Caster System Maps (or spellpacks) |
| 01-18-2006, 03:35 PM | #7 | |
Quote:
|
| 01-18-2006, 03:46 PM | #8 | |
Quote:
|
| 01-18-2006, 04:28 PM | #9 |
this helped me out greatly, actually. Thanks as well. I'm having a problem though, and that is, if my character runs out of mana, the mana shield wears off, and he's left still with the changes as if he was in manashield form. is there a way to make it leave in the event that the caster's mana drops to 0? I have a seperate thread on this, but as mentioned, i figured it would be best to just have 1 thread since the issues are similar. thanks |
| 01-18-2006, 06:46 PM | #10 |
Wow thanks so much for your detailed reply. When I get home I'll try and implement that, I think I understand everything you're saying. Appreciate you testing things for me, too :D I figured Vex would have something like this in one of his spell packs but I really don't like using those because I like to learn how to do things on my own so I can take the concepts and apply them to something else. You guys rock! ^_^ |
| 01-18-2006, 06:58 PM | #11 |
kumoblade I included triggers for when the unit's mana drops too low, read my post again. I think you should actually make it so when the unit's mana drops to 0, the buffer mana field doesn't actually seem to do anything. |
