well, it depends on what client u are using, if its a 4.x. or above and u have AoS on in ur ini, you will need to use and empty cliloc (or u could use title like the guy above me was trying to use, i would recommend an empty cliloc over title tho) in the player event to display, becus u cant single click players when u use AoS or above.
and as for the plot tags, seems kinda the long way around ur elbow, why not just tag then like so:
tag.race=Elven
this way it would be easy to set and display everywhere
Code:
[ITEMDEF i_race_elf_moongate]
DEFNAME=i_race_elf_moongate
NAME=Portail Elf
ID=i_moongate_blue
TYPE=t_normal
on=@step
if (strmatch (<src.tag0.race>, Elven))
src.sysmessage @,,1 You are already an Elf!
return 1
else
src.tag.race Elven
events += e_race
return 0
endif
[events e_race]
on=@clienttooltip
src.addcliloc 1042971, Race: <src.tag0.elven> // this shows 'Race: Elven' in the tooltip when u hover if using A0s or above
on=@click
say @,,1 <name> [<tag0.race>] this wil display 'Elven' next to their name when single clicked for Below AoS
return 1
[itemdef i_race_elf_door]
id=06e9
Name= Elf door
on=@dclick
if (strmatch (<src.tag0.race>, Elven) // elf
src.go <p> // to pass across (need the right command)
else
src.sysmessage = You are not the right class to use this door! blah blah
endif
return 1 // stop the door from opening at all, so no one else can enter
noticed u used 'return 0' after u check for race, this will cause the door to open, and then anyone can just walk thru it, i assume you dont want it to open, so i took the return 0 out and placed the return 1 after the IF statement to keep it shut always. as far as their paperdoll, if u want it to say Elven as well, u could use tag.name.suffix (or tag.name.prefix) and use the tag for it, ex.
Code:
on=@step
if (strmatch (<src.tag0.race>, Elven))
src.sysmessage @,,1 You are already an Elf!
return 1
else
src.tag.race Elven
src.tag.name.suffix <src.tag0.race>
events += e_race
return 0
endif
and its always a good idea to give it an events when scripting race, so u have more control over your player functions, u can either have 1 events that checks the tag with an IF statement, or u can give each race its own events, the later prolly being easiest for a novice.