Welcome to the Builder Academy

Question teleport trigger help

More
17 Sep 2017 22:04 #6910 by Parnassus
Replied by Parnassus on topic teleport trigger help
This makes total sense and I can see why I was confused. Thanks for the explanation.

Please Log in or Create an account to join the conversation.

More
18 Sep 2017 14:21 #6911 by JTP
Replied by JTP on topic teleport trigger help
Thomas using the 2 triggers, this is what i see in log:

[ Trigger: room teleport prison, VNum 11900. unknown char field:
'time_to_leave' ]
[ Trigger: room teleport prison, VNum 11900. unknown char field:
'time_to_leave' ]

Please Log in or Create an account to join the conversation.

More
18 Sep 2017 21:27 #6912 by thomas
Replied by thomas on topic teleport trigger help

Jan wrote: Thomas using the 2 triggers, this is what i see in log:

[ Trigger: room teleport prison, VNum 11900. unknown char field:
'time_to_leave' ]
[ Trigger: room teleport prison, VNum 11900. unknown char field:
'time_to_leave' ]

¨

So, I had another look at the scripts, and can see that I wrote %actor% twice in the second script. Those of course should have been %target_char% - there's a reason we're looping here.

The message you are seeing is because at least one of the people in the room did not enter it via a method that would trigger an enter trigger. Typically, this would be due to the char being inside the room before the trigger was assigned.
So, they are not triggering the first script, and thus has no variable set.

To fix it, attach to the room, then enter it. Oh, and fix the bug, too ;)

Please Log in or Create an account to join the conversation.

More
18 Sep 2017 22:06 #6913 by JTP
Replied by JTP on topic teleport trigger help
Hmm now it teleports the follower in the group and performs look, but not the group Leader.

And instead of two i get one:
[ Trigger: room teleport prison, VNum 11900. unknown char field:
'time_to_leave' ] In log. And i keep getting the error until i transfere the char out,

Please Log in or Create an account to join the conversation.

More
18 Sep 2017 22:54 #6914 by JTP
Replied by JTP on topic teleport trigger help
Just received log that the trigger has looped 100 times.

Though noone been there more Then maybe 10 loops.

Please Log in or Create an account to join the conversation.

More
18 Sep 2017 23:13 #6915 by WhiskyTest
Replied by WhiskyTest on topic teleport trigger help
tstat 24
Code:
Name: 'Room While Teleport Example', VNum: [ 24], RNum: [ 24] Trigger Intended Assignment: Rooms Trigger Type: Random , Numeric Arg: 100, Arg list: None Commands: * By Rumble of The Builder Academy tbamud.com 9091 * Target the first person or mob in the room. eval person %self.people% wait 1 sec *While there are still mobs or people in the room. while %person% %send% %person% You are next! %echo% I am targetting %person.name%. %echoaround% %person% %person.name% is struck by a bolt of lightning. Leaving only a pile of ash. %teleport% %person% 3 %force% %person% look eval person %self.people% done

Please Log in or Create an account to join the conversation.

Time to create page: 0.229 seconds