hands feet and other body parts

darkgoddessnight
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
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
excellent idea, I will try that.

Elexxorine
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
will you marry me?......I want you for your coding ability

Elexxorine
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
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
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

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

Support

Forums