gecheyou18
Regular
i want to let my npc join in the conversation when i encounter a party such as bandits in the map
and i noticed the words in the module_dialogs.py:
and i write my code as this:
and when the conversation is executed,the $sangeanmen must be 4.
and i assign $sangeanmen to 4 when the trp_shala join in my party.
so i do make sure that this third person(trp_shala) is present.
but it does not work.
i encounter the bandits, and bandits(xueseshala) say"aaa"
and then that "bbb" this sentence actually appears,but the face on the left side is still the bandits,not my trp_shala.
then player say "ccc"
and bandits:"ddd"
over.
so what is the mistake i made? and how to let the face on the left side also be my trp_shala?
i guess maybe it's because i didn't set my trp_shala to an entry point,but i'm not sure,and i dont know how to do it either.
my english is not very good,if you can't understand what i'm saying,tell me.
help.thanks.
and i noticed the words in the module_dialogs.py:
# Appending '|other(troop_id)' means that this line is spoken by a third person on the scene.
# (You must make sure that this third person is present on the scene)
and i write my code as this:
[party_tpl|pt_xuesejuntuans,"start",[(eq,"$talk_context",tc_party_encounter),(encountered_party_is_attacker),(eq,"$sangeanmen",4),
],"aaa","xueseshala1",[]],
[anyone|other(trp_shala),"xueseshala1",[],"bbb","xueseshala2",[]],
[anyone|plyr,"xueseshala2",[],"ccc","xueseshala3",[]],
[anyone,"xueseshala3",[],"ddd","close_window",[]],
and when the conversation is executed,the $sangeanmen must be 4.
and i assign $sangeanmen to 4 when the trp_shala join in my party.
so i do make sure that this third person(trp_shala) is present.
but it does not work.
i encounter the bandits, and bandits(xueseshala) say"aaa"
and then that "bbb" this sentence actually appears,but the face on the left side is still the bandits,not my trp_shala.
then player say "ccc"
and bandits:"ddd"
over.
so what is the mistake i made? and how to let the face on the left side also be my trp_shala?
i guess maybe it's because i didn't set my trp_shala to an entry point,but i'm not sure,and i dont know how to do it either.
my english is not very good,if you can't understand what i'm saying,tell me.
help.thanks.