| 07-09-2003, 09:12 PM | #1 |
1. I've tried making a mass invis spell, but its not functioning. I based the dummy spell off of windwalk, and the wisps that cast off of invisibility. E: Unit begins casting an ability C: Ability being cast equal to DUMMY Casting unit equal to SQUAWKERS A: Pick every unit in region centered at casting unit with size (400,400) and do Loop: Create 1 Wisp at castyzone Order last created unit to (human sorceress - invisibility) picked unit. Wait 0.01 seconds Remove last created unit from the game. Not only is the unit not invised, but the wisp doesn't disappear. I'm assuming that's because wedit really hates wait. But for the invisibility spell itself on the wisp, I made sure requires tech, targets allowed, range, mana cost, duration, and cast time are all appropriate. (Thought I had it with the requires: Sorc adept training, but it still doesn't work) The invisibility spell of the wisp is custom, but the order string is invisibility. (Though this works fine for a custom anti-magic shell spell that a wisp casts on the caster) 2. How would I make a hero level a custom spell? Because I'm trying to create wisps to level an ability when instructed. (Trying to level a custom chain lightning ability) Here are teh triggeRs: E: Unit is issued an order targeting an object C: Issued order equal to DUMMY Unit-type of caster equal to SQUAWKERS A: Set victim = Unit of targeted order The above is fine and dandy, just to make sense of part II: E: A unit learns a skill C: Learned skill equal to (whatever the order string was of the custom spell) Unit-type of caster equal to SQUAWKERS A: Set SpellLevel = SpellLevel + 1 SpellLevel is initially 0. This is so you know what level the hero's dummy spell is, so the wisp levels its spell the same amount of times. Part III: E: Unit begins casting an ability C: Ability being cast equal to Casting unit equal to SQUAWKERS A: Create a wisp at castyzone Give 10 ability points to last created unit For loop (from 1 to Spelllevel): Add a skill point to (Far Seer - Chain Lightning) Order last created unit to (Far Seer - Chain Lightning) victim. Wait 0.01 seconds Remove last created unit from the game So, basically, I cast a dummy spell. Then the wisp appears, levels the dummy spell to the same level as my dummy spell, then chains the target. But because its leveling a custom ability, I'm not sure if its possible to do that, because in game nothing is cast. Any ideas? |
| 07-09-2003, 09:41 PM | #2 |
Try this with the editor provided. I'm not sure if this'll work, but it's worth a shot. 1)Take the human spell, Invisibility and make it a hero ability if you like. You may have to exit out of the editor then go back in for it to recognize it. 2)If you want it to have levels, then change the "Stats-Level" to 3 3)In "Stats- Targets Allowed" add Player Units 4) Give it an area of effect radius 5) For spell effect, Change the "Art Target" to the same as Invisibility or what ever you like. 6) Finally, to get them to show up on everyone add two strings to the "Art - Target Attachment Point" First string should be "chest" second string should be "first"(without quotations). Example: Art - Target Attachment Point1 chest,first Art - Target Attachment Point2 chest,second etc.... -D |
| 07-10-2003, 07:47 PM | #3 |
Got number 2 to work..custom spells don't like some order strings. It was originally firebolt, but I changed it to absorb for some reason and now it works *shrug* I know now that you can't use wait triggers in pick every unit: loops (bleh). Is there any other conceivable way to do this? I even tried takng the wait and remove (last created unit) from the game out of the loop, and it still doesn't like functioning. |
| 07-11-2003, 01:51 AM | #4 |
*bump* |
