hands feet and other body parts

darkgoddessnight
06 Oct 2006, 00:18
I am wanting to give my character body parts, which might saound a bit strange. In particular hands. I don't want players for instance to be able to carry 15 things unless they are in containers, being worn or otherwise equipped. If the character has a mug of beer in one hand and a sword in the other ( a deadly combination if you ask me ) then I don't want them to be able to pick up a book. He or she would need to put down something in order to pick up the book. Any suggestions?

GameBoy
06 Oct 2006, 04:21
you could assign the player properties. A few versions ago people would use rooms for the left and right hands. You could use a similar method and just check for an object in the room, if there's already an object, then don't allow them to pick the book up, or if the properties contains a value, don't allow them to pick the book up.

It's quite flexible so i'm sure there are several ways of doing this. Until 4.0, Rooms are pretty useful containers.

darkgoddessnight
06 Oct 2006, 12:12
excellent idea, I will try that.

Elexxorine
06 Oct 2006, 13:49
yeah, the simplest I feel would be the property way. Give the player a property 'holdingleft' and 'holdingright' and set then to 'not' at the start. Basically you can overide the take command to check if there is a hand free or not and if it's free it'll give them the object:
command <take #@object#> {
if property <#player[userid]#; holdingleft> and property <#player[userid]#; holdingright> then msg <You cannot take it as your hands are full.> else {
if not property <#player[userid]#; holdingright> then property <#player[userid]#; holdingright> else property <#player[userid]#; holdingleft>
give <#object>
msg <You pick it up.>
}}
I just wrote that off-hand now, should work though...

darkgoddessnight
06 Oct 2006, 14:58
will you marry me?......I want you for your coding ability

Elexxorine
06 Oct 2006, 20:02
Um.... I'm guessing by your name you're a girl... Sadly though I may sound like a boy... Tis not true... And I'm not into same sex stuff, lolz. I'll help you all you want and I can though... :wink:

GameBoy
07 Oct 2006, 05:28
elexxorine wrote:Um.... I'm guessing by your name you're a girl... Sadly though I may sound like a boy... Tis not true... And I'm not into same sex stuff, lolz. I'll help you all you want and I can though... :wink:


Yeah, I was pretty shocked to find out that she was a girl after the whole time of thinking she was a guy. And about the "not into same sex stuff"... she lies... ;)

darkgoddessnight
07 Oct 2006, 13:17
I used to have my own keep on msn rp chat, and I played Lord Tevin Darkraven, got married, had kids, did quests and then my wife cheated on me with my arch nemesis and took over the kingdom and the kids.....and I came out of the closet so to speak. They were pretty shocked to find out I was a girl too :D