Mobs greeting PC's. Can it be done?
-
- Sword Grand Master
- Posts: 449
- Joined: Mon Aug 04, 2003 8:08 pm
- Location: Zhentil Keep
- Contact:
Mobs greeting PC's. Can it be done?
I have some mobs that I would like to blend in with the population of FK. Mainly I want them to look like pc's before you deal with them. Basicly I was hoping the mobs could greet the pc's then the pc's would know the mobs real name. Can this be done?
I am ready to meet my Maker. Whether my Maker is prepared for the great ordeal of meeting me is another matter.
-
- Sword Grand Master
- Posts: 4708
- Joined: Tue Jul 15, 2003 9:26 pm
- Location: House of Wonder, Waterdeep
There is something slightly similar, but different, in an area. There's an altar that is defaced and a quest to restore it.
Now, when someone, alone, enters the room, the object 'altar' is renamed either to 'a defaced altar' or 'a restored alter' according to whether or not the character has completed the quest or not. As long as people enters the room alone and you never have 2 characters at the same time in the room, everything is fine. And, with those conditions, everything would be fine with the greeting mob idea as well. You would just have to use something like :
The problems start as soon as two persons can be in the room at the same time. If person1 enters the room and has already been greeted, the mob will be named 'Albert'. If person2, who has not been greeted, enters the room afterwards, its name will be replaced with 'an old bearded man'. At this point, if person1 'look's in the room, he will see 'An old bearded man is here', not Albert. And it makes no real sense here to forget the mob's name.
Same problem if person1 and person2 are grouped and enters the room at the same time.
A possible way to fix that (but then again, it's not 100% error-proof, since you can look in a direction and see who is a few rooms away), would be to make the room solitary (only one character can go in, it's too small for two or more characters).
Now, when someone, alone, enters the room, the object 'altar' is renamed either to 'a defaced altar' or 'a restored alter' according to whether or not the character has completed the quest or not. As long as people enters the room alone and you never have 2 characters at the same time in the room, everything is fine. And, with those conditions, everything would be fine with the greeting mob idea as well. You would just have to use something like :
Code: Select all
>all_greet_prog 100~
if (quest bit shows that mob has greeted entering character)
mpmset self short Albert
mpmset self long Albert is here.
else
mpmset self short an old bearded man
mpmset self long An old bearded man is here.
endif
~
Same problem if person1 and person2 are grouped and enters the room at the same time.
A possible way to fix that (but then again, it's not 100% error-proof, since you can look in a direction and see who is a few rooms away), would be to make the room solitary (only one character can go in, it's too small for two or more characters).