| 10-10-2003, 07:33 AM | #1 |
I'm doing a trigger spell that needs a dummy spell, that could target a single corpse. I've tried using several spells, but each time I try to target a specific corpse, it says that the spell needs to target a corpse and then nothing happens. I also noticed that all corpse targeting spells (resurrection, animate dead, raise dead,...) only have a "start spell" command, but no specific targeting system. Any ideas? |
| 10-10-2003, 11:18 AM | #2 |
Maybe base it off an aoe spell like death and decay, then reduce the size of the effect. pick random corpse within 50 or so of the targeted point and effect it that way. |
| 10-10-2003, 11:40 AM | #3 |
raise dead targets one corpse... |
| 10-10-2003, 12:30 PM | #4 |
I ran into a similar problem, my solution was triggers. I made a spell based off of infernal with a very small radius then made a trigger that removed the summon and checked for a corpese the trigger only ran if a corpse was in range, if not mana was refunded and all they lost was the cooldown, not perfect but it works. |
| 10-10-2003, 12:55 PM | #5 |
Hm... I think there's a command that allows you me to cut cooldown to zero... that might do it. Thanks... |
| 10-10-2003, 03:28 PM | #6 | ||
Quote:
Yes, but you can't target Raise Dead. It targets itself, just like Ressuerection, ect. For the spell he's making, you need to be able to target a single corpse. Quote:
That would work if you can cancel the cooldown with trigger too, because it's an Ultimate, so it would have about a 180-240 second cooldown ://// |
| 10-10-2003, 09:23 PM | #7 |
Well theres where I hit the problem, the cooldown reset action resets ALL abilities on that unit. so by mistargeting you can reset all your cooldowns on purpose. At the time I created the spell I asked about it too but no one had a way to reset just one ability. |
| 10-11-2003, 08:36 AM | #8 |
I ment take the ability away and give it back to the unit. It resets the cooldown :) |
| 10-11-2003, 03:22 PM | #9 |
Animate dead won't work because, as mentioned, it's not targetted. You could probably do this best one of two ways (my title indicates my preference) Force of Nature: This spell doesn't have to summon things, but it's ideal at doing so. Problem is, it's a targeting circle, and probably chums off any valid targets in the area, not just the one corpse. I've run into problems with this; even though you set its target list, it still looks for trees, meaning that, for one use, I had to set the doodads it could target to also count as trees. Annoying, and probably something to fix in the patch. Cannibalize: The only flaw with this is that you can't use the ability when you're fully healed -- not too critical, considering the corpse you're targetting most likely was produced by something actively fighting you. Turn everything down to zilch (HP regained, duration) and have a trigger watch for "Unit completes casting an ability/Ability = Cannibalize-based-ability." Then you can do whatever you want. I've got it tweaked for a Find Item ("hork") skill; you spend 3 seconds (lowerable by skill level) over a corpse and sniff around, once it's done, the corpse goes away and a trigger watching for this runs the "Chance to drop item" trigger again. |
| 10-11-2003, 04:29 PM | #10 |
Kewl... as long as the cooldown resets. Also make sure that it says "must target a corpse" when there isn't one targeted :D |
| 10-11-2003, 05:55 PM | #11 |
Are you sure that removing the ability and giving it back will work? I dont think it will if the ability is a hero ability (namely due to skill levels). wouldnt it reset the skill to lvl 1? |
| 10-11-2003, 06:43 PM | #12 |
You can set level of a skill using triggers. |
| 10-11-2003, 07:52 PM | #13 |
It doesn't matter... the spell he's making is an ultimate. And yes, I do believe you can set skill levels with triggers. |
| 10-12-2003, 12:13 AM | #14 |
Hmm after some testing I guess I am wrong, If a hero has a skill that he can learn(ie didn't get it from triggers) If at some point during the game that skill was removed and added again, that skill can still be learned normally. Only problem that people might run into then is the fact that if a level is higher then level 1, you will need to remove it and give the player enough skill points to get it back up to its origional level. |
| 10-12-2003, 02:03 AM | #15 |
Which would also mean that were you to mistarget mid battle youd have to re place the points mid battle to use it??? |
