ID:170597
Jan 4 2005, 6:03 pm
|
|
Does anyone know how to make a Player Teleport verb that lets you pick a player out of a list and asks that person if the person can teleport /summon him and if he says yes then it will hapen and f no then nothing happends.
|
Jan 4 2005, 6:04 pm
|
|
In response to Dession
|
|
Thats now right, it doesnt ask the player you are teleporting to if they will let you teleport to them it just goes to them automaticly.
|
In response to Tsonic112
|
|
Im not doing everything for you.
|
In response to Dession
|
|
Wouldnt this work too (even if it includes NPCs)
Goto(mob/M in world) set category = "Admin" src.x = M:x src.y = M:y-1 src.z = M:z M << "[src] instantly apears before you!" src << "you apear before [M]" Summon (mob/M in world) set category = "Admin" M.x = src:x M.y = src:y-1 M.z = src:z M << "You have been summoned" src << "You have summoned [M]" Would that help? (and the asking thing, well im new but i guess u could put a list of options (yes or no) send the message and set the property of yes and no.......... but like i said im new so i cant remember all of that.... but i guess i could look it up if u reeeally need it... just remember not many people will find everything you ask... its more of a helping or guide direction) |
In response to Tsonic112
|
|
Use the input() proc. Its not that hard.
|
In response to Foomer
|
|
^_^
|
Out of interest, are you literally trying to copy icon chatter games?
I've seen you ask for help about functions excatly like in icon chatter games. |
In response to TKo38
|
|
Since you're new I think you need to know something about the forums. When trying to show code it makes life much easier if you post the code in DM tags. They're done like this:
<DM> *Code* </DM> It achieves this: mob |
In response to Dession
|
|
Dession, never put your own "Cancel" in an input() proc. Instead, do this:
input(...) as null|anything in MyList If it returns null, then the player pressed cancel. |
In response to Dession
|
|
var/mob/goingto = input("Who would you like to goto?") in players + "Cancel" For future reference, you can avoid having to add a "Cancel" option if you just "as null|mob" in the input. Like this: var/mob/goingto = input("Who would you like to go to?") as null|mob in players |
mob/Player/verb I suggest looking up the input() proc in the DM Ref. |
In response to TKo38
|
|
NPCs suck.
|
In response to DeathAwaitsU
|
|
He probably is.
|