Looking at self...

bgreen58
07 Mar 2005, 21:17
I found a previous post on this subject, but it still left me foggy.
What's the best way for a player to "look" at himself and get a message describing his appearance, what he's wearing, how he's feeling, etc...
I tried creating an object called 'self' (like described in the aforementioned post), but it didn't work.
Any suggestions?
:?

Christopher
08 Mar 2005, 01:09
Try adding a custom command "look at me", "look at self" etc. and then print a message that contains string variables such: "You are a #race# #class#. You are wearing #armour#, #helm#, #gloves#, #shield# and #accessory#. You have %health% health out of %maxhealth%.

METALGod32
08 Mar 2005, 05:48
Yeah what Christopher said, thats what i'd do, make several versions of it, "Look at Self", "L", "Self" etc so the player has ease of use.

Cryophile
10 Mar 2005, 22:22
The self object would have descriptive properties that you would use in string variables or such.
Say you wanted your character to weigh 135 kg. The string #object:property# displays the contents of the property as text. Such as #self:weight#

paul_one
11 Mar 2005, 09:41
You have to be careful though.
If the object property isn't set (let's say Weapon for instance) it could come back with an '!' .

I'd do it my own way, in a loop, with an array and one if - much simpler to look at, but only understandable to the pro's :P . That way you get a message that is customised and can change if your "self" changes in any way.

bgreen58
11 Mar 2005, 16:44
Actually, I'm finding that the array method might be the way to go CW. :lol:

One thing, though. Is there a way I can access the text in the <look> description so I can use it elsewhere? That would make it easier than making a new property with almost the exact same text.

paul_one
11 Mar 2005, 18:40
Like what?
I think it might be #object:look# or #object:description#...
I'd say either make it a seperate object property - or make it a variable.

darkgoddessnight
07 Oct 2006, 16:19
after browsing through all the stuff posted I found this script. My characters have a lot of properties, hair eyes race, etc and it is multiplayer. I would like to know more about the arrays and loops and if this system would work for multiplayer.

Elexxorine
08 Oct 2006, 16:11
DGN I'll send you my script for looking at other people noxt time I'm on MSN.