i am having a problem.
When the playr talks to "Bob" he is supposed to send him to school, but instead he sends him to a black screen area where you can see only the player
here is my code
mob
Bob
verb
Speak()
set src in oview(1)
switch(input("Hi im bob wanna go to skool?","bob")in list("yes","no"))
if("yes")
alert("Okay! Abracadabra!")
usr.loc=locate(11,19,3)
sleep(60000)
usr.loc=locate(2,2,1)
alert("You graduated!")
if("no")
alert("damnit go to skool!")
ID:261236
Nov 9 2001, 10:39 am
|
|
In response to Spuzzum
|
|
they do
|
In response to SSJ4_Sanatic Bardock
|
|
SSJ4_Sanatic Bardock wrote:
they do Did you check in the game, or just assume that it works? If you did check, I would then try teleporting yourself there manually in some other verb and looking around. Also, try checking world.maxz and seeing if that agrees with how many Z levels you think there are. |
In response to Spuzzum
|
|
the map Z is 3...and i cant manually teleport there..i still get a black screen
|
In response to SSJ4_Sanatic Bardock
|
|
SSJ4_Sanatic Bardock wrote:
the map Z is 3...and i cant manually teleport there..i still get a black screen That means that that location isn't valid, you should use a tag and warp there using that and make a view x,y,z verb and check your location. |
In response to Nadrew
|
|
could i make it so the usr gets sent to a specific turf...could you give me an example?
|
In response to SSJ4_Sanatic Bardock
|
|
SSJ4_Sanatic Bardock wrote:
could i make it so the usr gets sent to a specific turf...could you give me an example? Make a turf called warped and place it where you want the person to warp to, then in the warp code put src.loc=locate(/turf/warped) |
In response to Nadrew
|
|
THanks nadrew youre a big help!
one prob....if i make it src.loc...i end up sending bob there so it should be usr.loc |
I don't have any productive things to say about this... But that's no matter since everyone else has already helped/tried to help...
But I just wanted to say that sleep(60000) is a LONG time...lol 100 minutes? (if my math is correct...) They're stuck in "school" for a little over an hour and a half of game playing time? That's cruel...lol |
In response to SuperSaiyanGokuX
|
|
SuperSaiyanGokuX wrote:
I don't have any productive things to say about this... But that's no matter since everyone else has already helped/tried to help... Are you actually doing this using one map file or multiple map files? I had this problem once and it was caused because I was using multiple map files, which I should have only used one .dmp file. Lee |
In response to SSJ4_Sanatic Bardock
|
|
src is always the source, or the current atom your working with
mob verb say() world << "[src.name] said something!" src.name is saying that name is a variable of src, where src is mob. usr should not be used, and at all costs avioded if possible. if you are working within an object, then you have to use usr, but thats usually the only time. obj book var opened = 0 verb open() if(src.opened = 0) usr << "You opened the book!" src.opened = 1 else usr << "This book is already open!" this basic example shows how usr and src work interchangably(is that a word?) FIREking |
In response to FIREking
|
|
FIREking wrote:
src is always the source, or the current atom your working with You are rusty my buddy usr is always used within a verb. |
In response to Nadrew
|
|
um, no
mob verb say() world << "[src.name] said something!" thats a verb, and i didnt use usr, and it has the same effect. so i proved you wrong. FIREking sounds like your rusty to me..... |
In response to FIREking
|
|
but if you use
usr.loc it sends you src.loc sends bob |
var/turf/T = locate(11,19,3)
if(!T)
usr << "Error!"
return