I've been trying to make a teleport spell that works something like this: 45% chance to teleport to targetfloor destination. 20% chance to blink 20% chance to blink twice 5% chance to blink five times (10% do nothing) In my various ways of trying to get it to work, the only time it blinked at all was after a successful teleport to targetfloor.
<spell name="XYZ" type="target"> <effect type="triggerfromlist"> <option name="teleport to targetfloor"/> (repeat this 9 times) <option name="blink X times"/> (repeat this once for each 5% chance you want it to have.) <option name="null spell"/> (repeat twice.) </effect> </spell>
Fairly certain that would limit you to teleporting on top of monsters. Aegho: It would be helpful if you posted your attempt. The reason you only blinked after a teleport is probably because you have the wrong spell type for the blink spell - you should be using 'self'. Make sure you examine the two existing teleport spells from Mathemagic as a guide.
Here's the latest one. As you might note I ended up actually calling on the mathemagics blink, this was an attempt to see if that would work, when effect type="blink" self="1" didn't seem to. Code: <spell name="Detour" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Not quite where you intended to go."/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Lost In Space" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Where the hell did you end up?"/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Stick Out Your Thumb" type="targetfloor" downtime="10" icon="skills/spells/deathly_hex32.png" wand="0"> <effect type="teleport" percent="45" /> <effect type="trigger" name="Froda's Jump Discontinuity" percent="20" /> <effect type="trigger" percent="20" name="Detour" /> <effect type="trigger" percent="5" name="Lost In Space" /> <description text="Hitch a ride!"/> </spell> Icons are of course remnants of other spells I hadn't got around to changing yet.
My attempt to incorporate the advice of Essence was met with a game crash on spell cast. Code: <spell name="Null Spell" type="targetfloor" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Nothing happens."/> </spell> <spell name="Correct Destination" type="targetfloor" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Where you wanted to go."/> <effect type="teleport" /> </spell> <spell name="Not Quite Right" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Not quite where you intended to go."/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Detour" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Not quite where you intended to go."/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Lost In Space" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Where the hell did you end up?"/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Stick Out Your Thumb" type="targetfloor" downtime="10" icon="skills/spells/deathly_hex32.png" wand="0"> <effect type="triggerfromlist" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Not Quite Right" /> <option name="Not Quite Right" /> <option name="Not Quite Right" /> <option name="Not Quite Right" /> <option name="Detour" /> <option name="Detour" /> <option name="Detour" /> <option name="Detour" /> <option name="Lost In Space" /> <option name="Null Spell" /> <option name="Null Spell" /> <description text="Hitch a ride!"/> </spell>
Code: <effect type="triggerfromlist" /> triggerfromlist is a container tag. It should contain the various options that form the list it is selecting a spell from. Eg: Code: <effect type="triggerfromlist"> <option name="Spell 1" /> <option name="Spell 2" /> </effect>
Weird... removing the / from <effect type="triggerfromlist" /> made the spell no longer show up on the quickbar. Code: <spell name="Null Spell" type="targetfloor" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Nothing happens."/> </spell> <spell name="Correct Destination" type="targetfloor" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Where you wanted to go."/> <effect type="teleport" /> </spell> <spell name="Not Quite Right" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Not quite where you intended to go."/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Detour" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Not quite where you intended to go."/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Lost In Space" type="self" icon="skills/warrior/macery2_32.png" wand="0" > <description text="Where the hell did you end up?"/> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> <effect type="trigger" name="Froda's Jump Discontinuity" self="1" /> </spell> <spell name="Stick Out Your Thumb" type="targetfloor" downtime="10" icon="skills/spells/deathly_hex32.png" wand="0"> <effect type="triggerfromlist"> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Correct Destination" /> <option name="Not Quite Right" /> <option name="Not Quite Right" /> <option name="Not Quite Right" /> <option name="Not Quite Right" /> <option name="Detour" /> <option name="Detour" /> <option name="Detour" /> <option name="Detour" /> <option name="Lost In Space" /> <option name="Null Spell" /> <option name="Null Spell" /> <description text="Hitch a ride!"/> </spell>
It's because you need to close the <effect> tag. Look at the end of my first example's list of <option name>s, and you'll see the </effect> tag that has to come at the end of the list.
Ah, thanks, that fixed that issue. I must however report that the blinking still does not occur at all. As it stands it's 45% teleport, 55% do nothing. So I am in effect still stuck with my original problem. I suspect it has something to do with the mixed targets. IE: Teleport goes targetfloor, and blink needs to target self. It seems that if the original spell uses targetfloor then subspells will not correctly target self even when instructed to(in fact instructed to with redundancy in this case).
I'm pretty sure that's not the case. When I wrote Archmage, i deliberately created stacking triggers that used different targeting methods, and I've never seen a "self" spell refuse to go off, no matter what the type of the triggering spell was. Try going through and removing the 'self="1"'s from everything, and adding an 'amount="1"' to each trigger. See if that helps.
Ok, well, this code from Null's Wind Magic works just fine: <spell name="Flight" type="targetfloor" icon="skills/spells/windmagicflight32.png"> <requirements mp="7" savvyBonus="0.15" mincost="4"/> <effect type="teleport"/> <effect type="targetblink"/> <effect type="trigger" spell="In Flight"/> <anim sprite="sprites/sfx/energyring/energyring" frames="8" framerate="50" sfx="teleport" centerEffect="1"/> </spell> So I think if, rather than calling Froda's Jump Discontinuity, you use <effect type="targetblink">, you should be good, since that effect clearly plays nice with the "targetfloor" spell type.
No it's because he got triggers wrong. The only real difference between blink and targetblink is blink plays the snap animation. I used targetblink so you wouldn't appear to teleport twice and would instead blink somewhere else instantly.
I originally tried it with effect type="blink" which didn't work any better than calling on froda's. As for spell= vs name=... guess I got confused because I've been corrected in the other direction before on targethiteffectbuff (uses name=""). But thanks guys, using targetblink fixed it.