sit, stand, lay commands for multiplayer

darkgoddessnight
04 Oct 2006, 04:56
I am a bit burnt out right now so I hope this makes sense. I have made seat and bed types but don't know how exactly to implement them into the game. The dillema is how do I make it so the person doing the sitting sees "You take a seat." and everyone else see "You see sitter take a seat." and make it so while sitting, you can't leave the area you are in (you will have to stand to do that). I thought I had it figured out at one point using flags, but it corrupted the game file so I had to start over.

Please help,
Shadow

Elexxorine
04 Oct 2006, 13:39
command <sit on #@object> {
if property <#object#; sitable> then {
set string <sitter; #player[userid]#>
for each object in <#quest.currentroom[userid]#> {
if property <#quest.thing#; netplayer> then {
if ( #quest.thing# = #sitter# ) then msgto <#(quest.thin):userid#; You sit on the #@object#.> else msgto <#(quest.thin):userid#; $capfirst(#@sitter#)$ sits on the #@object#.>
}}}}
Ok, for once this code will actually work straight if you pop it in, just make sure everything that can be sat on has a property 'sitable' and it'll work. Just open your game up and add this JUST below the other commands. :)

darkgoddessnight
04 Oct 2006, 13:51
Thanks! I have been agonizing over this all day. Now maybe I can get some work done.