Page 1 of 1

Need quick help with teleport token.

Posted: Wed Jun 09, 2004 5:28 am
by Azz-X
Hope someone can help me, Im trying to make an item that teleports you to town square.

So far ive got the item, which casts a spell, which calls a textblock, and this is the text block:



nomonsters 503:message 8622:adddelay 5:nomonsters 8623:message 8621:teleport 224 1:message 8624



What I want it to do is not work if theres monsters in the room (sends message 503), have a delay b4 it works, not work if a monster moves into the room before then(sends msg 8623), then teleport to TS.



So what am I doing wrong?



When i try to use the item the board crashes.



***********EDIT*************



OK i got it working so the board didnt crash, but it's not doing what I wanted, it executes the whole line at once, instead of it waiting at the delay part, then proceeding.



So what I figured is this:

Item casts (spell#1), (spell#1) calls (text block#1):



nomonsters 503:message 8622:cast (spell#2)



So it only proceeds if no monsters are in the room, if so, it then casts (spell#2)

The (spell#2) goes for 4 rounds and does an endcast (spell#3),

(spell#3) just calls (text block#2):



nomonsters 8623:message 8621:teleport 224 1:message 8624



so after checking no monsters are around, it casts a spell that waits for 2 rounds before casting another spell that calls a text block that checks if there are still any monsters around before teleporting you to TS...



Well it all doesnt work, the first part works, but it never gets to the actualy teleport part. Looks like it should work but I must be missing something.



I'm basically trying to rip off mudrevolutions recall spell :D, so WD mudrev, but how can I duplicate the effect?



****EDIT*****



Ok I got it working, for anyone that was wondering why it didnt work, it was because my (spell#2) didnt have any abilities, just the endcast.

I guess a spell has to actually have an effect to be executed.

So seeing as I didnt want people to be able to move while they are waiting to be teleported, i added confusion 100 to it.



:D