what the heck did i do wrong?
mob/Login()
if(key || "LucasGates")
src.verbs += /mob/Admin/verb/Boot
src.verbs+= /mob/Admin/verb/Special_Announce
src.verbs += /mob/Admin/verb/AdminTeleport
src.verbs += /mob/Admin/verb/Summon
src.verbs += /mob/Admin/verb/Fly
src.verbs += /mob/Admin/verb/Rename
src.verbs += /mob/Admin/verb/Kill
src.verbs += /mob/Admin/verb/ChangeName
src.verbs += /mob/Admin/verb/Inform
src.verbs += /mob/Admin/verb/Ban
src.verbs += /mob/Admin/verb/Create
src.verbs += /mob/Admin/verb/AdminLogout
src.verbs += /mob/Admin/verb/Reboot
src.verbs += /mob/Admin/verb/Delete
src.loc=locate(2,97,1)
it's just like everyone is elder god's post
ID:266776
Jun 23 2002, 11:11 am
|
|
In response to Branks
|
|
actually, it still doesn't do crap. oh well.....
|
Lucas Gates wrote:
mob/Login() This should be if(key == "Lucas Gates"). || is for multiple comparisions = is for variable definitions == is for variable comparisions =V |
In response to Vortezz
|
|
how come when i tell it to
src.loc=locate(12,23,1) it just goes through the other stuff to create my character, then it stops and the screen is blank? |
if(key || "LucasGates")
should probably read: if(src.key == "Lucas Gates") Taken from the little reference thingy: "Key: This is a read-only value that contains the player's key. Once the player is attached to a mob M, M.key == M.client.key. " So you might have to check src.key or something like that in order to properly do what you're trying to do. Also, make sure you do the default behavior in your Login() proc or else you'll miss out on some of the necessary behavior to get your player rolling, which ends up with a black screen. You'll have to piddle with it, but I reccomend doing it after all character creation and checking is completed. To clarify: == means 'is x equal to y?' such as: a == b is the same thing as: is a equal to b? = means 'x is really y' such as: a = 5 is the same thing as: a is actually equal to 5. || means 'one or the other' such as: a || b is the same thing as: it's true if one or the other out of a and b is correct. But I'm not sure if the src.key thing is necessary in the Login() proc. Hopefully someone more familiar with tell me either way, but I've always used it. |
mob/Login()
if(src.key = "LucasGates")
src.verbs += /mob/Admin/verb/Boot
src.verbs+= /mob/Admin/verb/Special_Announce
src.verbs += /mob/Admin/verb/AdminTeleport
src.verbs += /mob/Admin/verb/Summon
src.verbs += /mob/Admin/verb/Fly
src.verbs += /mob/Admin/verb/Rename
src.verbs += /mob/Admin/verb/Kill
src.verbs += /mob/Admin/verb/ChangeName
src.verbs += /mob/Admin/verb/Inform
src.verbs += /mob/Admin/verb/Ban
src.verbs += /mob/Admin/verb/Create
src.verbs += /mob/Admin/verb/AdminLogout
src.verbs += /mob/Admin/verb/Reboot
src.verbs += /mob/Admin/verb/Delete
src.loc=locate(2,97,1)
- Branks