| 04-02-2004, 11:40 PM | #1 |
Hey... another trigger question for ya. I'm trying to make an ability called Prism Feathers for a gigantic bird unit. This is a passive ability. Ideally, it should reflect any spell (Any spell at all) cast on him back to the caster. I have no idea how to make this work, for this trigger has failed: Event Unit finishes casting an ability Actions If: unit type of target unit of ability being cast equal to Roc (The bird) Then: Add ability being cast to target unit of ability being cast. Order target unit of ability being cast to cast target unit of ability being cast on casting unit. Then there's another trigger that removes any ability from the Roc when he's done casting. Help me out here... |
| 04-03-2004, 04:31 PM | #2 |
Yes... that is very similar. That's about what I want... (100% chance, though, and a unit, not a hero) Unfortunately, I do not understand JASS script at all (though I plan to learn it using a school loophole next year) and thus can't really modify your spell to fit my needs. Thanks anyway, though. (Black hole was particularly funny, though when used in conjunction with reflect magic kept triggering the spell without any effects) |
| 04-03-2004, 11:21 PM | #3 |
Huh. That's not QUITE what I was shooting for (as it'll be random), but it'll be good enough. How, though, might I reflect a spell such as firebolt? (Thanks again) |
| 04-04-2004, 12:46 AM | #4 |
Rats. Well, I'll use your suggestion for buffs, anyway. Luckily, Ominous Horizons has a cleverly designed (thank you very much) custom buff system that will work with any special power. Thanks for your help. I need to learn JASS... |
| 04-04-2004, 09:10 PM | #5 |
Hey... that's a project secret! (Realistically, it would take me a long time to type it out, and I'm not even sure I can remember exactly how it is set up off the top of my head. Therefore, I just claim it's a closely guarded secret in order to dodge the work.) |
| 04-04-2004, 10:46 PM | #6 |
Here's an alternate. It wont reflect the spell but it casts it on the caster. Create a dummy caster, give it the spell and order it to cast it. |
| 04-04-2004, 11:47 PM | #7 |
I could do that with the roc... There'd be no need to create another unit. The issue lies in what ability to order him to cast. There's no trigger function for that. |
| 04-05-2004, 02:52 AM | #8 |
Nope. My secret buff system involves simple unit groups, really, but with a few loop triggers involved. |
| 04-05-2004, 02:57 AM | #9 |
This secret buff system seems to be eating away at your mind for some reason. Suffice to say, it works like warcraft buffs for special trigger based abilities. They could be stolen, dispelled, whatever, and they have magic/physical properties. |
| 04-05-2004, 03:31 AM | #10 |
Nope. Not quite. Although I suppose a periodic would work, too. |
| 04-05-2004, 05:02 AM | #11 | |
Quote:
Is it just me or is this guy REALLY annoying? :( Anyway, OT: What's the problem with ordering a unit to cast a spell thats being cast on another unit so long as both units have the spell being cast? Is there not a way to say, look spell x is being cast so cast spell x? |
| 04-05-2004, 09:22 PM | #12 | |
Quote:
Use "last added spell" or something like that to use it. |
| 04-05-2004, 11:01 PM | #13 |
*sniff*... what have I done to annoy you so? I... I'm crushed... I just... can't go on living without your positive favor! I did not know you couldn't re add an ability, but that's still not the current issue. The spell would not even work one time, which it should have according to you. There's no last added ability function, either. Listen to Alpha, he knows of what I speak. As for the mana, I gave him enough to use any spell in the game, and 100 mana regeneration. (His innate abilities don't cost mana) Regardless, I'll go on working with dummy casters. |
