Welcome to the Builder Academy

Question Trigger of the Day - Push Button Teleport

More
08 Feb 2013 18:46 - 10 Feb 2013 13:26 #1479 by Rumble
Code:
Trigger Intended Assignment: Objects Trigger Type: Command , Numeric Arg: 4, Arg list: push Commands: * By Fizban if %arg% != button %send% %actor% Push what? else %force% %actor% cls wait 2 s %echo% The button activates a platform lift under your feet. wait 1 s %echo% You are going higher and higher set dest 4300 %teleport% %actor% %dest% end
If this was helpful please vote or leave a review for TBA.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
Last edit: 10 Feb 2013 13:26 by Rumble.

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

More
10 Feb 2013 03:59 #1484 by Nerian
I hope you don't mind a couple of questions about the trigger


what does the cls portion do?


and what is the purpose of setting the dest to 4300 and then calling it in the very next line?

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

More
10 Feb 2013 13:30 #1485 by Rumble
These examples are meant to generate questions.

That cls should have been %force% %actor% cls to clear the actor's screen.

The %dest% variable was probably just Fizban's habit of using variables instead of numbers. In this case it isn't necessary but for longer and more complex trigs it would be easier to have a variable so you can use that for all the various echo's, echoarounds, etc. and then only have to change the one variable. I'm guessing he planned to make this for multiple floors at some point and %dest% would vary.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

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

More
10 Feb 2013 18:20 #1486 by Nerian
ah ok multiple floors and the variable would indeed make sense

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

More
11 Feb 2013 09:42 #1488 by zusuk
yeah it does seem like a really smart practice, especially for finding the varible quickly if you want to adjust it for example

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

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

More
15 Feb 2013 08:33 #1510 by Ornir
Well one thing that the %dest% variable could be really good for is displaying messages in the room that the elevator is stopping at - But I guess that would depend on the details of the zone, etc.

Luminari - a Pathfinder/D&D inspired adventure!
www.luminarimud.com
luminarimud.com 4100

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

Time to create page: 0.350 seconds