ID:179709
Nov 19 2001, 5:50 pm
|
|
How do you make something talk when you bump into it? The code?
|
In response to Gouku
|
|
nope doesnt work. Anyone??
|
In response to Gouku
|
|
Gouku wrote:
I think you would use something like this Erm.. not quite :)... Few things: 1. Bumb() isn't a proc :). Check your spelling there, bucko. 2. Might wanna close your parenthesis. Other than that, it's all good. I'll expand on the system a tad. mob/proc/Bumped(mob/who) //for when something is bumped Er.. I haven't coded for so long, I'm getting carried away. Anyhow, when defining a mob's properties for placement, just override the Bumped() proc for what you want it to say. =V |
In response to Vortezz
|
|
Well i know to close the paretnasies and i figured if he is using a bumb proc he would know to close then as well
I thought Bumb() was a proc well at least i learned something new here lol |
In response to Gouku
|
|
Gouku wrote:
I thought Bumb() was a proc well at least i learned something new here lol Heh. May as well be. Bump() is a proc, not Bumb() =P |
In response to Vortezz
|
|
i tried you code vortezz but it says that bumped is a undefined proc
|
In response to Tazor07
|
|
Tazor07 wrote:
i tried you code vortezz but it says that bumped is a undefined proc Did ya put in this bit?
mob/proc/Bumped()
|
In response to Vortezz
|
|
yea but you also put in the parentesees (mob/usr)
|
In response to Tazor07
|
|
Tazor07 wrote:
yea but you also put in the parentesees (mob/usr) Err.. yeah.. Sorry. -.-;;
mob/proc/Bumped(mob/who)
|
In response to Vortezz
|
|
its still saying the same thing. Put the full code in again and make it right :) Sorry about asking you so much :)
|
In response to Tazor07
|
|
Tazor07 wrote:
its still saying the same thing. Put the full code in again and make it right :) Sorry about asking you so much :) Eck. It's my fault; I gave you faulty code... Just a sec, lemme whip up a correct version! Okay. Here goes.. mob/proc/Bumped(mob/bywhom) //for when something is bumped, and by who Should work! Sorry for all the hassle, and thanks for not yelling at me for being so accident-prone! :) |
In response to Vortezz
|
|
im still getting that stupid error about undefined proc
here it goes: mob/proc/Bumped(usr) //for when something is bumped, and by who mob/Bump(mob/M) M.Bumped(src) //when you run into something, do whatever we set for it to do when bumped //now, we can simply make new systems for each mob, easily! turf Boy Bumped(mob/M) <-----This part keeps saying undefined proc usr << "Shopkeep: What would you like to buy?" |
In response to Tazor07
|
|
Tazor07 wrote:
turf You've declared Bumped() as a mob proc, not a turf proc :). Change turf to mob. |
In response to Vortezz
|
|
ok it works now :) Thanks alot!
|
mob
George
Bumb(mob/George)
switch(input(stuff
I think that works