IF:FinalDecision-node: Unterschied zwischen den Versionen

Aus Philo Wiki
Wechseln zu:Navigation, Suche
(additional aliases)
(new parsing)
Zeile 32: Zeile 32:
 
The printed name of TertiumDaturOption is "option 2".
 
The printed name of TertiumDaturOption is "option 2".
 
The printed name of dontLikeItHereOption is "option 3".
 
The printed name of dontLikeItHereOption is "option 3".
 +
 +
After reading a command when dontLikeItHereOption is listed in the tell-suggestions of finaldecision-node:
 +
let p be indexed text;
 +
let p be the player's command;
 +
if the player's command matches the text "1" or the player's command matches the text "one", case insensitively begin;
 +
[try the player telling Skoraste about "option 1";]
 +
replace the regular expression ".*1.*" in p with "t option 1";
 +
replace the regular expression ".*one.*" in p with "t option 1";
 +
change the text of the player's command to p;
 +
else if the player's command matches the text "2" or the player's command matches the text "two";
 +
replace the regular expression ".*2.*" in p with "t option 2";
 +
replace the regular expression ".*two.*" in p with "t option 2";
 +
change the text of the player's command to p;
 +
[try the player telling Skoraste about "option 2";]
 +
else if the player's command matches the text "3" or the player's command matches the text "three";
 +
replace the regular expression ".*3.*" in p with "t option 3";
 +
replace the regular expression ".*three.*" in p with "t option 3";
 +
change the text of the player's command to p;
 +
[try the player telling Skoraste about "option 3";]
 +
else if the player's command matches the text "topics";
 +
do nothing;
 +
else;
 +
say "[bold type]Quartum non datur.[roman type]";
 +
reject the player's command;
 +
end if.
 
}}
 
}}
 
{{IFResponse
 
{{IFResponse
Zeile 37: Zeile 62:
 
|condition="[dontLikeItHereOption]"
 
|condition="[dontLikeItHereOption]"
 
|response=say "'It seems that you spent a lot of time to come up with these rules,' you say. 'But I do not consider myself to be a citizen pre-ordained to serve the higher cause of the state and renounce my individual pleasure. There is no entertainment, only monotony in your designer state. I want to have fun and money and prefer to resume my old life.'[paragraph break]";
 
|response=say "'It seems that you spent a lot of time to come up with these rules,' you say. 'But I do not consider myself to be a citizen pre-ordained to serve the higher cause of the state and renounce my individual pleasure. There is no entertainment, only monotony in your designer state. I want to have fun and money and prefer to resume my old life.'[paragraph break]";
say "Notalp suddenly enters and shouts angrily, 'You have no insight into the Good! This is the reason why you cannot understand our life. You have to leave my territory immediately!'[space]";
+
say "Notalp suddenly enters and shouts angrily, 'You have no insight into the Good! This is the reason why you cannot understand our life. You have to leave my territory immediately!'[remove dontLikeItHereOption tell suggestion][remove TertiumDaturOption tell suggestion][remove AffirmationOption tell suggestion][space]";
 
end the game saying "You depart and join your former gang. They welcome you back and you improve your skills as a thief until, in the end, you become a perfect thief. If it can be stolen, it can be yours. No less, and also: no more.".
 
end the game saying "You depart and join your former gang. They welcome you back and you improve your skills as a thief until, in the end, you become a perfect thief. If it can be stolen, it can be yours. No less, and also: no more.".
 
}}
 
}}
Zeile 44: Zeile 69:
 
|condition="[TertiumDaturOption]"
 
|condition="[TertiumDaturOption]"
 
|response=say "'I can see that your state is a challenge to the life I came from,' you say. 'But your citizens pay an enormous price to achieve the goal of justice. They are constantly put into the straight-jacket of political correctness and expelled from the community if they do not conform to its regulations. I'll think about my options.'[paragraph break]";
 
|response=say "'I can see that your state is a challenge to the life I came from,' you say. 'But your citizens pay an enormous price to achieve the goal of justice. They are constantly put into the straight-jacket of political correctness and expelled from the community if they do not conform to its regulations. I'll think about my options.'[paragraph break]";
say "'We hope you come back again,' Skoraste says with a wise smile. 'Maybe you should take a walk. While you are revisiting your options, I am going to water the plants. Enjoy the nice weather.'[space]";
+
say "'We hope you come back again,' Skoraste says with a wise smile. 'Maybe you should take a walk. While you are revisiting your options, I am going to water the plants. Enjoy the nice weather.'[remove dontLikeItHereOption tell suggestion][remove TertiumDaturOption tell suggestion][remove AffirmationOption tell suggestion][space]";
 
try silently saying goodbye to Skoraste;
 
try silently saying goodbye to Skoraste;
 
say "[italic type]You decide to take the metro because it's too sunny over ground.[roman type][paragraph break]";
 
say "[italic type]You decide to take the metro because it's too sunny over ground.[roman type][paragraph break]";
Zeile 59: Zeile 84:
 
|condition="[AffirmationOption]"
 
|condition="[AffirmationOption]"
 
|response=say "'I see, you have thought of everything,' you say. 'Nobody here would ever even think of unjust behavior. I can fancy nothing better than to stay here for good. Just tell me which work I should do, and I will be from now on a loyal tenant.'[paragraph break]";
 
|response=say "'I see, you have thought of everything,' you say. 'Nobody here would ever even think of unjust behavior. I can fancy nothing better than to stay here for good. Just tell me which work I should do, and I will be from now on a loyal tenant.'[paragraph break]";
say "Notalp comes out from the palace. Fanfare sounds. 'That is very pleasant,' Notalp says and claps in his hands. 'You have understood what this community is about.'[space]";
+
say "Notalp comes out from the palace. Fanfare sounds. 'That is very pleasant,' Notalp says and claps in his hands. 'You have understood what this community is about.'[remove dontLikeItHereOption tell suggestion][remove TertiumDaturOption tell suggestion][remove AffirmationOption tell suggestion][space]";
 
end the game saying "This is the beginning of your life as a palace guardian. As an initial present Notalp offers you a book, beautifully printed on high-quality paper. It seem to deal with how to build a state that guarantees justice to all its citizens.".
 
end the game saying "This is the beginning of your life as a palace guardian. As an initial present Notalp offers you a book, beautifully printed on high-quality paper. It seem to deal with how to build a state that guarantees justice to all its citizens.".
 
}}
 
}}

Version vom 30. August 2009, 22:58 Uhr

<root><ignore><includeonly></ignore>[[IFSeqNr::<tplarg><title>seqnr</title><part><name index="1"/><value>50</value></part></tplarg>|]]<template><title>IFTodo</title><part><name>todo</name>=<value><tplarg><title>todo</title><part><name index="1"/><value/></part></tplarg></value></part><part><name>status</name>=<value><tplarg><title>status</title><part><name index="1"/><value/></part></tplarg></value></part></template> <template lineStart="1"><title>IFshowKosmos </title><part><name>topography</name>=<value><tplarg><title>topography</title><part><name index="1"/><value/></part></tplarg> </value></part></template> <div class="IFDetails">

<big>CONVNODE<br /></big>Details

gehört zu folgendem Abschnitt: [[IFTopographie::<template><title>IFreturnNS</title></template><tplarg><title>topography</title><part><name index="1"/><value>nicht zugeordnet</value></part></tplarg>|<tplarg><title>topography</title><part><name index="1"/><value>nicht zugeordnet</value></part></tplarg>]]


nutzt Suggestions: <div class="IFListing"><template><title>#if: <tplarg><title>other-suggestions</title><part><name index="1"/><value/></part></tplarg></title><part><name index="1"/><value><template><title>#arraymap:<tplarg><title>other-suggestions</title><part><name index="1"/><value/></part></tplarg></title><part><name index="1"/><value>,</value></part><part><name index="2"/><value>x</value></part><part><name index="3"/><value>[[IFnutztSuggestion::<template><title>IFreturnNS</title></template>x|x]]</value></part></template></value></part></template> </div>

</div> <template lineStart="1"><title>IFSetReturn </title><part><name index="1"/><value><template><title>PAGENAME</title></template> is a <template><title>#if: <tplarg><title>closed</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value><tplarg><title>closed</title><part><name index="1"/><value/></part></tplarg> convnode</value></part><part><name index="2"/><value>convnode</value></part></template><template><title>#if: <tplarg><title>next-node</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>. The next-node is <tplarg><title>next-node</title><part><name index="1"/><value/></part></tplarg></value></part><part><name index="2"/><value/></part></template><template><title>#if: <tplarg><title>node-time</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>. The node-time is <tplarg><title>node-time</title><part><name index="1"/><value/></part></tplarg></value></part><part><name index="2"/><value/></part></template><template><title>#if: <tplarg><title>ask-suggestions</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>. The ask-suggestions are { <tplarg><title>ask-suggestions</title><part><name index="1"/><value/></part></tplarg> }</value></part><part><name index="2"/><value/></part></template><template><title>#if: <tplarg><title>tell-suggestions</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>. The tell-suggestions are { <tplarg><title>tell-suggestions</title><part><name index="1"/><value/></part></tplarg> }</value></part><part><name index="2"/><value/></part></template><template><title>#if: <tplarg><title>other-suggestions</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>. The other-suggestions are { <template><title>#arraymap:<tplarg><title>other-suggestions</title><part><name index="1"/><value/></part></tplarg></title><part><name index="1"/><value>,</value></part><part><name index="2"/><value>x</value></part><part><name index="3"/><value>x</value></part></template> }</value></part><part><name index="2"/><value/></part></template><template><title>IFreturnProperties</title><part><name index="1"/><value><template><title>#if: <tplarg><title>auto-suggesting</title><part><name index="1"/><value/></part></tplarg></title><part><name index="1"/><value><tplarg><title>auto-suggesting</title><part><name index="1"/><value/></part></tplarg>,</value></part></template></value></part></template>. <template><title>#if:<tplarg><title>todo</title><part><name index="1"/><value/></part></tplarg></title><part><name index="1"/><value>[<tplarg><title>todo</title></tplarg>]</value></part></template><template><title>#sub:<template><title>#if:<tplarg><title>additional code</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>.

<tplarg lineStart="1"><title>additional code</title></tplarg></value></part></template><template><title>#if: <tplarg><title>node-introduction</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>.

Node-introduction for <template><title>PAGENAME</title></template>: <template lineStart="1"><title>#sub:<tplarg><title>node-introduction</title></tplarg></title><part><name index="1"/><value>0</value></part><part><name index="2"/><value>-1</value></part></template></value></part></template><template><title>#if: <tplarg><title>node-continuation</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>.

Node-continuation for <template><title>PAGENAME</title></template>: <template lineStart="1"><title>#sub:<tplarg><title>node-continuation</title></tplarg></title><part><name index="1"/><value>0</value></part><part><name index="2"/><value>-1</value></part></template></value></part></template><template><title>#if: <tplarg><title>node-termination</title><part><name index="1"/><value/></part></tplarg> </title><part><name index="1"/><value>.

Node-termination for <template><title>PAGENAME</title></template>: <template lineStart="1"><title>#sub:<tplarg><title>node-termination</title></tplarg></title><part><name index="1"/><value>0</value></part><part><name index="2"/><value>-1</value></part></template></value></part></template>.</title><part><name index="1"/><value>1</value></part></template></value></part></template> <ignore></includeonly></ignore></root> <root><ignore><includeonly></ignore><br /><template><title>IFSetReturnResponse </title><part><name index="1"/><value>Response of <template><title>PAGENAME</title></template> when <tplarg><title>type</title><part><name index="1"/><value/></part></tplarg> <tplarg><title>condition</title><part><name index="1"/><value/></part></tplarg>: <tplarg lineStart="1"><title>response</title><part><name index="1"/><value/></part></tplarg> </value></part></template><ignore></includeonly></ignore></root> <root><ignore><includeonly></ignore><br /><template><title>IFSetReturnResponse </title><part><name index="1"/><value>Response of <template><title>PAGENAME</title></template> when <tplarg><title>type</title><part><name index="1"/><value/></part></tplarg> <tplarg><title>condition</title><part><name index="1"/><value/></part></tplarg>: <tplarg lineStart="1"><title>response</title><part><name index="1"/><value/></part></tplarg> </value></part></template><ignore></includeonly></ignore></root> <root><ignore><includeonly></ignore><br /><template><title>IFSetReturnResponse </title><part><name index="1"/><value>Response of <template><title>PAGENAME</title></template> when <tplarg><title>type</title><part><name index="1"/><value/></part></tplarg> <tplarg><title>condition</title><part><name index="1"/><value/></part></tplarg>: <tplarg lineStart="1"><title>response</title><part><name index="1"/><value/></part></tplarg> </value></part></template><ignore></includeonly></ignore></root>