|
GelRoos Beginner
Joined: 12 Jun 2002 Posts: 13 Location: Canada
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
GelRoos Beginner
Joined: 12 Jun 2002 Posts: 13 Location: Canada
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
|
|