Stendhal Quest Editor: Difference between revisions
Content deleted Content added
imported>Hendrik Brummermann |
imported>Hendrik Brummermann |
||
| (29 intermediate revisions by the same user not shown) | |||
Line 40:
First of all, we need to indicate, that "lumberjack" is a word, which the player may say. The client prints those words in blue. In the editor (or the java code), we use the "#" character to achieve the highlighting.
And second, we have to define a
Unlike "job", "lumberjack" is not a predefined standard trigger, so it is not in the drop down list. Therefore we have to use the custom trigger field.
== Aside: The graph view ==▼
In the next section, we will have a look at asking questions and reacting to answer. But before we go there, we should have a look at the <nowiki>[Graph]</nowiki>-page:
Line 48 ⟶ 50:
[[Image:FsmEditor Simple Graph.png]]
You can see a red box in the middle
Linked to the ''ATTENDING'' state there are the two interaction, which we have defined earlier.
If a NPC is in state ATTENDING and the player says one of those triggers, the interaction will be executed and the NPC will reply.
If you point the mouse cursor at a transition, you can see a box on the right with detailed information.▼
▲If you point the mouse cursor at
== Task 3: Ask the player for a new axe ==
Line 66 ⟶ 70:
[[Image:FsmEditor Quest Graph.png]]
[[Image:FsmEditor Quest.png]]
== Task 4: SetQuestAction ==
| |||