Welcome to the Builder Academy

Question d&d mud trigger questions

More
27 Aug 2012 01:08 #744 by bakarus
I'm designing an area that will be run sort of like a d&d module. In certain rooms I'd need to check if the pc's are dwarven, or roll random values like rand_number(1, 20) to determine if they make certain checks and then display some information if they make the check and display nothing if they fail it, i'd also want to make some of these checks 1 time only, per visit to the zone.

The DM will basically be the triggers throughout the zone, and chain quests will keep them going through it.

My question is, that if i did it this way, i'd have to set and check variables in each room they visit that had a trigger attached, so that going back through the room wouldn't awaken or force a new roll to avoid x action. Is there anyway that once a player is done in the zone to simply strip all of these 'temporary' variables from them? So that their next visit to the zone can result in them getting the messages/checks all over again.

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

More
27 Aug 2012 01:53 #745 by Vatiken
You could place a trigger at either the end of the quest or at the beginning that will remove any temp variable set.

tbaMUD developer/programmer

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

More
27 Aug 2012 13:34 #747 by Rumble
Several ways you could do it. I'd use globals or remote variables to the pfile. Either way you can set the variable to a value to suit your needs. =1 could be in progress, =2 could be complete, =3 could be whatever else you need. Check help files on each. The variable delete command is vdelete, I think it is rdelete when used inside a trigger.

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

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

Time to create page: 0.274 seconds