Randomizing exits

For builders to discuss and ask building questions.
Post Reply
User avatar
Kethyean
Sword Novice
Sword Novice
Posts: 36
Joined: Sat Feb 23, 2013 5:59 pm
Location: Ardeep

Randomizing exits

Post by Kethyean » Thu Mar 14, 2013 7:10 pm

I was curious if it's possible code wise for an exit to be taken to one of X amount of rooms set aside for a random encounter type scenario and when you exit said room it could randomly choose from a list of exit points in that same area.

I want to make this area a tricky but fun maze!
Father guide my blade and see your work be done!
User avatar
Harroghty
Staff
Staff
Posts: 9695
Joined: Tue Jul 27, 2004 5:38 pm

Re: Randomizing exits

Post by Harroghty » Thu Mar 14, 2013 9:37 pm

Yes, you could use an intercept program. e.g.
>intercept_prog east~
if rand(50)
connect east VNUM
else
connect east VNUM
endif
mpunintercept
endif
~
|
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
User avatar
Kethyean
Sword Novice
Sword Novice
Posts: 36
Joined: Sat Feb 23, 2013 5:59 pm
Location: Ardeep

Re: Randomizing exits

Post by Kethyean » Thu Mar 14, 2013 9:45 pm

Thanks!
Father guide my blade and see your work be done!
Post Reply