| 08-31-2003, 02:15 AM | #1 |
Is it possible to make a spell be auto-casting and vice-versa? Just wondering because it would be cool to have an auto casted hex... |
| 08-31-2003, 03:22 AM | #2 |
No!!! ((me thinks so, (99% sure)) - ByTe.ME uswest |
| 08-31-2003, 04:06 AM | #3 |
I don't know of a way to make a true auto-cast out of a spell that normally is not. The closest I know of is the following: 1) Make a dummy spell with a cooldown of .1 seconds and no mana cost 2) Trigger #1: Event -A unit begins casting a spell Conditions -Spell = <your spell> Equal to True Actions -If AutoVar = False --Then Set AutoVar = True --Else Set AutoVar = False 3)Trigger #2 Event -Periodic Event - Every X Seconds Conditions -AutoVar = True Actions -Put spell triggers here NOTES: 1) You will not have the activated icon 2) You will need to manually reduce the mana of the caster in trigger #2 as this is not a true auto-cast 3) Obviously, this will not make the spell right-click to autocast and the spell will ALWAYS auto-cast when used. 4) You might also consider doing a Force UI for Trigger #2, but I can't think of a way you would do that as it would set the variable to False every time the trigger runs. |
| 08-31-2003, 04:14 AM | #4 |
actually you can, but it wont be the ability itself that you cast, but using triggers. Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to (auto cast spell, i suggest using something like a curse based spell, which is made to have no affect but activating the trigger) Actions Unit - Order (use a hidden or modeless unit) to Orc Shadow Hunter - Hex (Targeted unit) Im pretty sure that will work, try it out, if it doesnt work, i have no other ideas. the only thing im not sure if it will work, is the targeted unit part |
| 08-31-2003, 05:48 AM | #5 |
Yes, by using triggers and a dummy unit casting the Hex spell(or any spell you want) as described by Frostbite and Sardonioos is possible. Although I've never attempted it myself - ByTe.ME uswest |
| 08-31-2003, 06:14 AM | #6 |
I was working on this same thing about six months ago, to be put in a map I never made. The map I'm attaching has autocasting for Unholy Frenzy and Curse. It may not be all that great, as I wasn't nearly as good as I am now at the time I made it, but it functions pretty well. This was made back in 1.04 I think, but there shouldn't be any problems. It uses chat commands to turn on/off autocasting. Type "uf" for unholy frenzy and "cr" for cripple. The triggers are very well documented. There a TON of comments. You should be able to follow along pretty well. This isn't perfect, but it's a huge step in the right direction if you want to do this sorta thing. |
| 08-31-2003, 06:55 AM | #7 |
Wouldn't the autocasting unit continue to cast the dummy spell even if the target was already effected? i.e. on traditional autocast spells like curse, a banshee won't attempt to curse a unit that's already been cursed. But, if you use curse as a dummy for another spell, it won't register the unit as being effected by the dummy spell (but rather the spell you cast on it with triggers), so the unit would keep autocasting on it. |
| 08-31-2003, 06:56 AM | #8 |
You might not anwser this, it's ok if you don't. It's not about spell. I just want to ask how did u become so good at spell editing? |
| 08-31-2003, 08:32 AM | #9 | |
Quote:
You can always keep the curse on the unit, for the same duration as the spell is. The only problem then is the animation... And the buff.. A buff editor would be really usefull. Edit: I think it would work with hex though, curse is only autocasted on units that attack, or am I wrong? |
| 08-31-2003, 09:03 AM | #10 | |
Quote:
Most of the people on this forum got good by just fooling around in the WE. If you're looking to learn the basics, check out the 'Tutorials' link on the main page. After you have those down, you can try downloading sample spells/triggers from posts in the forums (look in the Trigger Repository), think up pretty much any spell and try to create it in the WE, or just look around this forum for questions/problems people have posed and see if you can figure out a solution in the WE. Also, whenever someone asks a question, the exact trigger/code can usually be found in the response, so you get both the problem and the solution in one. It also helps if you've taken a basic computer programming course or two; the WE trigger editor is VERY similar to TurboPascal. |
