| 05-06-2003, 06:29 PM | #1 |
Can it be done? For example, is it possible to make Unholy Frenzy auto-castable? Either via triggers or a spell editor? |
| 05-06-2003, 07:04 PM | #2 |
I don't think so. Well for sure not with a spell editor. Martinez |
| 05-06-2003, 07:52 PM | #3 |
You could write a trigger that is fired once every x seconds and checks if the situation for each possible caster of the spell is suited to cast the spell and then issue an order to cast it. You could for example, for unholy frenzy, check if a hero is within casting range of the caster and not has that spell already on him and at least 200 HP and an enemy is within a certain range of the hero. But you have to be aware that such extensive checking requires a lot of computing time, especially with many casters. The second shortcoming of that is that you could not switch autocasting off/on with rightclicking the spell. |
| 05-07-2003, 07:14 AM | #4 |
Guest | This is just a shot in the dark. Have u tried editing the racefunc.txt and adding a button turn on and turn off... Dunno what that would do, perhaps unpredictable at best. Or using an already autocasted spell moded to the spell effects that you wanted. I would go with B if at all possible. Modding a spell that is closest to the potential of your spell effect that you wanted and the autocast would already come with it. |
| 05-07-2003, 08:09 AM | #5 | |
Quote:
Yes you can its very easy. And you dont have to use triggers and such! Well I am not at my computer so I will try to tell as much as I can. First You make your custom spell. Lets say Blizzard. You change all the stuff you want for that spell in the SLK file. Then you go to the TXT part of makeing a custom spell. Go to HumanAblityFunc(Might be strings not sure) Then go to the bilzzard spell func's on the list of all the other human spells. You will see stuff like Missle Art and target Art(I Think). And you will have to add in some new lines for the auto cast command. You find a auto cast spell, Lets use slow. You find slow spell on the same page with the blizzard(ITs a human spell) you copy the auto cast part out off it. I forgot what it is called, But you can figure it out. You will be able to tell what part in the slow spell is auto cast, Trust me(PM me if you are haveing troble) And after you copy the auto cast part out of the slow spell, paste it in the blizzard func part on the list. And save! and there you go you got a auto cast blizzard spell! I hope you know what I am talking about. Have fun!! |
| 05-08-2003, 07:55 AM | #6 |
But will it really be used when it is on autocast? |
| 05-08-2003, 08:25 AM | #7 | |
Quote:
Yeah I was thinking the same thing. Since for example a faerie fire based spell with negative values and able to target friendlies won't auto-target them. Also some kind of anti-cripple that has negatives and targets allies won't be used by the cpu at all (well unless you will do so that he does but with triggers or some AI stuff). Martinez |
| 05-08-2003, 08:47 AM | #8 |
Take an autocasting spell (searing arrows are good because you can eliminate damage and it won't do anything except your trigger) and add a trigger starting every time the spell is cast. It works perfectly. I've been able to make Spell Steal (TFT kind of it)via triggers and AI uses it well. |
| 05-08-2003, 04:39 PM | #9 | |
Quote:
Is there something like "spell is cast"? I thought there is only a "Issued order" n stuff that detects only if the spell has been orderer to be casted. Martinez |
| 05-08-2003, 06:53 PM | #10 |
i do it when ability has benn isued with a target, ability == farie fire, then cast blah blah on targeted unit. |
| 05-08-2003, 07:17 PM | #11 |
nice i thought it was impossible:D |
| 05-08-2003, 07:23 PM | #12 |
Its easy... make an empty autocast spell like autocurse with curse duration of zero seconds and then fetch it with triggers... Then create an invisible unit which casts whatever you want at the targeted unit Greets Darky |
| 05-08-2003, 09:58 PM | #13 | |
Guest | Quote:
Um, that isnt possible. I know because I have tried it. Adding a couple strings to the text files will only allow it to do that, if its already an autocast spell. If it isnt, this will have no effect, and thats that. |
| 05-09-2003, 07:23 AM | #14 | |
Quote:
I sware I got it to work.... You want have the yellow connors on it but it will still work. Right now I am grounded so I cant get on WC3 so When I am ungrouned I will show you guys. |
| 05-09-2003, 07:16 PM | #15 |
Guest | That is the most hacked thing I've ever heard. Make an invis unit cast it and run behind you to autocast. I dunno about you but i'd hate to have someone "see" this unit if you had a gem of true seeing or if it didnt have the gem in the map, what else could go wrong? Inventive but kinda hacked from the sound of it. |
