ID:266273
 
how would i make it so that it asks your name i have no code for this cuz i dont no where to start

K.O.W (lol :))
Try to think of it in terms of code. What are you doing when you ask for strength, powerlevel, or anything else? You store it in a variable. So what would you do with name? The exact same. Look up input()

Alathon
In response to Alathon
ohhh i get it now thx al


K.o.W
In response to King of Wind
how would i make a text field tho like the say verb?

K.o.W
In response to King of Wind
King of Wind wrote:
how would i make a text field tho like the say verb?

K.o.W

What say verb? I tired to look up ssay verb, but there is none. Do you mean something that pops up?
In response to King of Wind
You would have to use as text in a verb example:


mob/verb/Say(T as text)//Makes a var called T and names it as text
world<<"[usr]: [T]"//This outputs what T is to the world.



NOTE DO NOT COPY PASTE THIS CODE IT WILL NOT WORK!
In response to Nadrew
Nadrew wrote:
You would have to use as text in a verb example:


Or as message, for a bigger box

Alathon
In response to Air _King
yas
In response to King of Wind
can someone plz give me an example of the code i need to use to do that?
In response to King of Wind
King of Wind wrote:
can someone plz give me an example of the code i need to use to do that?

mob/Login()
var/Name = input("Whats your name?")
src.name=Name
..()
In response to Nadrew
thx nadrew ur always there when i need help and i have another Q what is wrong with this:attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away the damage from M

here is the errors:D.B.S.F.dm:43:error:M.HP:bad var
D.B.S.F.dm:38:error:punch :undefined proc

i know they first but the second is killin me.
In response to King of Wind
King of Wind wrote:
thx nadrew ur always there when i need help and i have another Q what is wrong with this:attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away the damage from M

here is the errors:D.B.S.F.dm:43:error:M.HP:bad var
D.B.S.F.dm:38:error:punch :undefined proc

i know they first but the second is killin me.


That means you made a proc and gave it no definion what is line 38 of your code?
In response to Nadrew
the attack part
In response to King of Wind
I don't see punch() in the jumbled mess up there.
In response to Nadrew
o ya!!!!