ID:180014
 
I Need Some Help With Basic Coding Like Making Verbs And Making Mobs Follow And Attack Users
Maybe You Should Learn Some Coding Yourself And Write Those Things For Your Own Game. Also, Maybe You Should Learn When To Use The Shift Key And When Not To. Just An Idea. :D
In response to Lord of Water
Hmm it was just questions..i mean this is the newbie Central
In response to Turles9000
Well, now that you have your shift problem fixed, I'll help you a bit...


mob
verb
say(message as text)
world << "[src]: [message]"


This will make a basic chat verb, called "say". You could also do this:


mob
verb
say(message as text)
set category = "Chat"
world << "[src]: [message]"


The "set category" will make a new verb category called "chat". If you had two verbs with:

set category = "Chat"

you would have lots of verbs in "Chat".



To tell you the truth, I have yet to find a way to have a mob follow another... time for some research.
In response to Lord of Water
I figured out the verb code like 5 minutes before u posted
In response to Turles9000
Oh and do u know how to set it so we can put mobs in the map and we can set users in the game?
In response to Turles9000
If you mean, make a move to a certian place, look at the "Teleport!" tutorial, from "Tutorials" on the side bar.
In response to Lord of Water
Lord of Water wrote:
Well, now that you have your shift problem fixed, I'll help you a bit...


mob
verb
say(message as text)
world << "[src]: [message]"


This will make a basic chat verb, called "say". You could also do this:


mob
verb
say(message as text)
set category = "Chat"
world << "[src]: [message]"


The "set category" will make a new verb category called "chat". If you had two verbs with:

set category = "Chat"

you would have lots of verbs in "Chat".



To tell you the truth, I have yet to find a way to have a mob follow another... time for some research.

Well, a lot of ways to accomplish this. Heres a simple and very rugged way

mob/Player
Move(Loc)
if(follower)
var/mob/M=follower
step_towards(M, src)
..()

Well, it prob wont work like that but you get the idea

Alathon
In response to Alathon
Uuh... you lost me on that one. After looking at things a little, I came up with this:

verb/follow(M as mob in oview())
doit(M)
proc/doit(var/towho)
if(towho:Move())
step_to(src,towho)
doit(towho)
In response to Turles9000
These questions are too basic. Read the FAQ... there's a reason it was written. FAQ stands for "Frequently Asked Questions," and it's there so we won't have to answer these questions over and over again. Pay particular attention to the section on getting started.