Armageddon General Discussion Board

General => Code Discussion => Topic started by: Reiteration on June 10, 2012, 02:46:29 PM

Title: Rest and Sit changes
Post by: Reiteration on June 10, 2012, 02:46:29 PM
Is it possible to intercept a rest or sit command when it was directed at a table or furniture piece they are already upon? This check could probably be placed prior to the [Standing first] message and could simply say they are already sitting/resting at the target.

Is it possible to modify sit to act like rest whereas using the command by itself without arguments and while upon an object will change your position on said object?


>sit bed
You sit on a bed.

>rest
You rest on a bed.

>sit
[Standing first]
You stand up from a bed.
You sit down.
Title: Re: Rest and Sit changes
Post by: Patuk on June 10, 2012, 02:48:58 PM
Uh.. As far as I'm aware, this is already the case.
Title: Re: Rest and Sit changes
Post by: Reiteration on June 10, 2012, 02:50:22 PM
Quote from: Patuk on June 10, 2012, 02:48:58 PM
Uh.. As far as I'm aware, this is already the case.

Try again, pretty sure my clan staff thinks I'm retarded if they saw what my character was doing for the past five minutes.
Title: Re: Rest and Sit changes
Post by: solera on June 10, 2012, 02:55:46 PM
As far as beds go, some seem  to do it, some don't.  My past experience anyway.
Title: Re: Rest and Sit changes
Post by: Reiteration on June 10, 2012, 03:18:57 PM
Quote from: solera on June 10, 2012, 02:55:46 PM
As far as beds go, some seem  to do it, some don't.  My past experience anyway.

Hmm, I'm starting to think that sitting at tables is entirely different code-wise from sitting on other objects.
Title: Re: Rest and Sit changes
Post by: bcw81 on June 10, 2012, 03:25:13 PM
If you can rest on it, and you're already sitting at it, this already happens.
Title: Re: Rest and Sit changes
Post by: Reiteration on June 10, 2012, 03:35:32 PM
Quote from: bcw81 on June 10, 2012, 03:25:13 PM
If you can rest on it, and you're already sitting at it, this already happens.

Is this to item 1 or 2?
Title: Re: Rest and Sit changes
Post by: Xeran Van Houten on June 10, 2012, 03:52:09 PM
They don't seem to understand what you're meaning, Reiteration.

I'm pretty sure I've come across objects that will let you sit from rest without specifying the object, but I can't be positive.

For those that don't understand about what he's talking about and keep trying to say it's like that, is that you can 'sit couch' then 'rest' and you'll automatically rest on the couch (or whatever), but if you do the opposite and 'rest couch' then 'sit' it won't do that - you stand up and sit on the floor. Though like I mentioned, I think I've found some objects that you can do that to, but most of them you can't.

Whether this is code or object, it's likely not a small thing to make them "Scandinavian friendly"... That's part's a joke, btw.
Title: Re: Rest and Sit changes
Post by: Barsook on June 10, 2012, 06:02:40 PM
Quote from: Reiteration on June 10, 2012, 03:35:32 PM
Quote from: bcw81 on June 10, 2012, 03:25:13 PM
If you can rest on it, and you're already sitting at it, this already happens.

Is this to item 1 or 2?

I think it's visa versa type of thing.
Title: Re: Rest and Sit changes
Post by: Nyr on June 11, 2012, 11:25:03 AM
Quote from: Reiteration on June 10, 2012, 02:46:29 PM
Is it possible to intercept a rest or sit command when it was directed at a table or furniture piece they are already upon? This check could probably be placed prior to the [Standing first] message and could simply say they are already sitting/resting at the target.

Is it possible to modify sit to act like rest whereas using the command by itself without arguments and while upon an object will change your position on said object?


>sit bed
You sit on a bed.

>rest
You rest on a bed.

>sit
[Standing first]
You stand up from a bed.
You sit down.


I can't duplicate this, even doing it in the same places you did with the same commands.  Note that if you are asleep and then wake up, you automatically move to "sitting," not "resting," so if you type "sit" after that point, you're already sitting...therefore the game thinks you want to sit on the floor because you've provided no argument.
Title: Re: Rest and Sit changes
Post by: brytta.leofa on June 11, 2012, 11:30:13 AM
I wonder about:
"rest bed"
"sit "  <-- note space after sit

(Can't log in right now; anybody want to try?)
Title: Re: Rest and Sit changes
Post by: Nyr on June 11, 2012, 11:33:50 AM
Quote from: brytta.leofa on June 11, 2012, 11:30:13 AM
I wonder about:
"rest bed"
"sit "  <-- note space after sit

(Can't log in right now; anybody want to try?)

Sit + space = you sit on the bed
sit - space = you sit on the bed

"rest bed"  -- you rest on the bed
"sit" -- you sit on the bed
"sit" (again) -- obviously you want to sit somewhere else, let me deposit you on the floor after you stand up
Title: Re: Rest and Sit changes
Post by: A Large Bag on June 11, 2012, 11:40:53 AM
I've encountered some bed/bunk/cot objects where you can sit on them but if you try to rest or sleep on them it dumps you on the floor instead. Should these be bugged?
Title: Re: Rest and Sit changes
Post by: Patuk on June 11, 2012, 12:25:46 PM
Quote from: Nyr on June 11, 2012, 11:33:50 AM
Quote from: brytta.leofa on June 11, 2012, 11:30:13 AM
I wonder about:
"rest bed"
"sit "  <-- note space after sit

(Can't log in right now; anybody want to try?)

Sit + space = you sit on the bed
sit - space = you sit on the bed

"rest bed"  -- you rest on the bed
"sit" -- you sit on the bed
"sit" (again) -- obviously you want to sit somewhere else, let me deposit you on the floor after you stand up

Keep this up long enough and I promise I'll make you a new rage comic.
Title: Re: Rest and Sit changes
Post by: Maso on June 11, 2012, 12:28:13 PM
I'm so confused.
Title: Re: Rest and Sit changes
Post by: bcw81 on June 11, 2012, 02:38:03 PM
Quote from: A Large Bag on June 11, 2012, 11:40:53 AM
I've encountered some bed/bunk/cot objects where you can sit on them but if you try to rest or sleep on them it dumps you on the floor instead. Should these be bugged?
Yes. Bug (or typo) them. Staff normally fix this in a few minutes.
Title: Re: Rest and Sit changes
Post by: musashi on June 11, 2012, 08:02:49 PM
Hahaha. We made Nyr sit, stand, and roll off a bed repeatedly like he was retarded  :D