Aller au contenu

Photo

[SOLVED] Database Error - Multiple Dialogue Conditions in same branch


1 réponse à ce sujet

#1
Charsen

Charsen
  • Members
  • 2 266 messages
I want to have a dialogue that gives a different reward depending on the character class (Rogue, Warrior, Mage).

Right now, I have the rewards2da and plot set up to give a warrior, rogue and mage reward. They individually work fine, but I want to have a branched conditional in a dialogue.

I'm editing a follower's dialogue to do this:

Generic NPC's dlg:
-->Player: Quest complete.
---->[OWNER]: Thanks.
-------->[END DIALOGUE] **Condition: gen00pt_class_race_gendFlag: GEN_class_WARRIOR = is true
-------->[END DIALOGUE] **Condition: gen00pt_class_race_gend Flag: GEN_class_ROGUE = is true
-------->[END DIALOGUE] **Condition: gen00pt_class_race_gend Flag: GEN_class_MAGE = is true

If the conditions are met, then (this is generic):
Action: genpt_follower_main
Flag: follower_give_item
is set.

Now, this works fine if I only have 1 [END DIALOGUE], but the moment I add the other two, it won't let me save and tells me to check the log for an error message:

"Unable to save resource data to the database.
Resource can not be saved.Please check your logs for error messages before closing the toolset and losing your work."
I could do something more round about in the dialogue but I'd prefer a simple switch here since it's easier to link to.

Any suggestions?

edit: bbcode

Modifié par Charsen, 27 mars 2010 - 07:23 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
I don't think the conversation system allows you to have multiple empty end dialog nodes coming off of one NPC line. Instead, use mutliple empty NPC lines:

Generic NPC's dlg:
-->Player: Quest complete.
---->[OWNER]: Thanks.
------>[CONTINUE]
-------->[OWNER] **Condition: gen00pt_class_race_gendFlag: GEN_class_WARRIOR = is true
---------->[END DIALOGUE]
-------->[OWNER] **Condition: gen00pt_class_race_gend Flag: GEN_class_ROGUE = is true
---------->[END DIALOGUE]
-------->[OWNER] **Condition: gen00pt_class_race_gend Flag: GEN_class_MAGE = is true
---------->[END DIALOGUE]