verbage help

s_villarreal
Ok so here's my dilema, and i'm sorry if this is a lame explination but i'm new at this. But what I'm trying to do is create verbs for a game i'm working on. I've managed to get the "you laugh at person-x" and the... "person-y laughs at you" down.. but what i've been agonizing over is how to get the rest of the people in the room that aren't person-x and person-y to see "person-y laughs at person-x
here's my code so far

command <laugh #@player#> {
if property <#player#; netplayer> then {
msg <You laugh at #@player#.>
msgto <#player#; |b$name(%userid%)$|xb laughs at you.>


}

}


Hope you guys can help me out

Elexxorine
command <laugh at #@target#> {
set string <speaker; #player[userid]#>
for each object in <#quest.currentroom[userid]#> {
if property <#quest.thing#; netplayer> then {
if ( #quest.thing# = #target# ) then msg <$capfirst(#speaker#)$ laughs at you.> else {
if ( #quest.thing# = #speaker# ) then msg <You laugh at $capfirst(#target#)$> else msg <$capfirst(#speaker#)$ laughs at $capfirst(#target#)$.>
}}}}
That should do it...

s_villarreal
thanks a bunch, trying to take it all in, hopefully, with enough practice, i'll get somewhere decent with this stuff

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums