Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
GelRoos
Beginner


Joined: 12 Jun 2002
Posts: 13
Location: Canada

PostPosted: Thu Jul 04, 2002 4:17 pm   

Room Script Help :)
 
Hey all,
Having a little trouble with a room script i am working on and hoping someone can tell me how to fix it :)

Heres the code
#IF (@line=~ "You say 'darkhaven'")
{#TE 1 "Darkhaven"}

Basically i want to be able to walk in the room look around do what ever. but when i say darkhaven i want the mapper to load up the DH MAp and oput me in room 1. I have tried without the {} on the telport command but it automatcially telports me to dh map before saying darkhaven :)


dam mobs always repoping
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Jul 04, 2002 4:45 pm   
 
The problem with this is that room scripts are executed when you enter the room only. What you want to do is to create an #ONINPUT trigger to look for when you say that message. So, your room script should be:
#ONINPUT {You say 'darkhaven'} {#TE 1 "Darkhaven"}

Kjata
Reply with quote
GelRoos
Beginner


Joined: 12 Jun 2002
Posts: 13
Location: Canada

PostPosted: Fri Jul 05, 2002 8:25 am   
 
Alright I gave it a whirl and after a gramitcal correction with oninput I got it to work okay.
#oninput {^You say 'darkhaven'$} is all it required thank you very much

Gelroos'

dam mobs always repoping
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jul 05, 2002 11:29 am   
 
Actually, I don't know why it is working, but looking at it again, it should not work. The trigger should be a normal trigger, not an on input trigger. But, if it works...

Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net