ID:263115
 
Alright, so I have this code set up here:
mob
Login()
usr.icon = 'stickman.dmi'
And whenever I try to compile, it gives me this error:

BYOND(348.905) Error: the file C:\Documents and Settings\Michael\Desktop\BYOND\Games\Chat X\Chat X.rsc is locked up!
Chat X.dme:15:error:'stickman.dmi':cannot find file
'No put usr in proc, ungh.'

That, and don't compile while the game is running.

In response to Mysame
Thanks. But now when I run, the map doesn't show up.
In response to Eternal_Dread
You also need to define where the player will be located at, so do src.loc=locate(x,y,z), change the x, y, and z to where you would want the player to be located at when they enter your game.

->Calus CoRPS<-
In response to Mysame
Mysame wrote:
'No put usr in proc, ungh.'

you dont use login() it happens... last time i checked
In response to Darkdemonrad
That'd just create more and more confusion. Pseudo-verbs (Click, DblClick, etc) are safe with usr, though.
In response to Mysame
Sarcasm...
In response to Darkdemonrad
Nihil sarcasm, plain facts.
Also, your sentence made no sense whatsoever so I understood very little. The 'sarcasm' is on your side.
In response to Eternal_Dread
Eternal_Dread wrote:
Thanks. But now when I run, the map doesn't show up.

Unless you're setting up a few different vars like the player's location yourself, you need to call ..() during Login().

Lummox JR
In response to Mysame
Now I've got someone else using the word psuedo-verbs! Soon, the world will be MINE!

usr is only safe in mob/Login() if players never reconnect to different mobs during the game. I wouldn't use usr there.
In response to Calus CoRPS
Calus CoRPS wrote:
You also need to define where the player will be located at, so do src.loc=locate(x,y,z), change the x, y, and z to where you would want the player to be located at when they enter your game.

->Calus CoRPS<-

God thanks you and is willing to give his throne to you. It works now. While I'm asking about this, how would I set up a verb that would let the user change their icon to something have on their system?
In response to Eternal_Dread
mob
verb
Change_Icon(I as icon)
src.icon = I
In response to A.T.H.K
How about changing the icon state?
In response to Eternal_Dread
Oh, come on, someone give me the code for a verb that would change the state of the icon a user currently is using.
In response to Eternal_Dread
Look the code is simple learn to do it your self for god sake were not here to just hand out code and acting like you are i hope no body gives you the code so you can copy and god damn paste it read the freakin DM GUIDE and DM REFERENCE.
In response to A.T.H.K
A.T.H.K wrote:
Look the code is simple learn to do it your self for god sake were not here to just hand out code and acting like you are i hope no body gives you the code so you can copy and god damn paste it read the freakin DM GUIDE and DM REFERENCE.

Since it's extremely simple to learn, and since changing icon_states is just one stupid line of code, why don't you just show it instead of your agressive attitude?

src.icon_state="somestate"
// Eternal_Dread - put this in any verb, name the correct icon_state and you're done. =)
// Although, the first part,'src', defines who's icon_state is going to be changed. The part after that sets the icon_state.


athk, if you're just planning to yell at him for asking something extremely simple: one simple line of code, of which he will most likely learn, then you shouldn't reply at all.

Nobody told you you have to give him an entire verb, you just should've just explained how to set icon_states. And bam, you've taught him something, and have not flamed him. But in reality, it's vice versa.

You haven't contributing anything but badness to this community with that moronic post.

O-matic
In response to Eternal_Dread
Eternal_Dread wrote:
Oh, come on, someone give me the code for a verb that would change the state of the icon a user currently is using.

Please realise that this community is not a 24/7 service that provides you with help on any single problem you have, and whenever you want.

O-matic
In response to Mysame
Mysame wrote:
Nihil sarcasm, plain facts.
Also, your sentence made no sense whatsoever so I understood very little. The 'sarcasm' is on your side

Jp wrote:
Now I've got someone else using the word psuedo-verbs! Soon, the world will be MINE!

That part is what he called sarcasm, not the paragraph below it. Although, it's rather irony than sarcasm.

O-matic
In response to O-matic
That wouldn't help the guy either, would it? Not in a icon-choosing verb.

mob/verb/Change_Icon(i as icon)
if(i)
usr.icon=i
usr.icon_state=input("What's the icon state?") as null|text
In response to Mysame
Mysame wrote:
That wouldn't help the guy either, would it? Not in a icon-choosing verb.


Giving him directly what he wants is not helpfull, actually. I really wonder what he learns from that code you provided to him. Considering the chance of 90% of each new programmer directly copy+pastes from the forums. If he's expieriencing any trouble with what I gave him, he is free to ask here - but I would not give him what he wants. No, I'd rather theoritically explain to him how to do it, so that he learns.

O-matic
Page: 1 2