Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE Contract SYSTEM "../xml/contract.dtd">
- <Contract>
- <Key name="component1" value="getComponent1"/>
- <Key name="component2" value="getComponent2"/>
- <Key name="component3" value="getComponent3"/>
- <Key name="reward1" value="getReward1"/>
- <Key name="reward2" value="getReward2"/>
- <Key name="reward3" value="getReward3"/>
- <!--
- Steps:
- 0: Parlez à Thor
- 1: Parlez à Odin
- 2: Rapportez 1 composant électronique à Odin
- 3: Rapportez 20 eau pure à Odin
- 4: Rapportez 5 mémos disque à Odin
- 5: Retournez voir Odin quand il est prêt
- 6: Détruisez le pirate et récupérez la console Mnémos
- 7: Rapportez la console Mnémos à Thor
- 8: Récupérez la récompense auprès de Thor
- -->
- <!-- Thor mécontent -->
- <Variable name="grumpy" scope="attendee" type="boolean" default="false"/>
- <!-- Date à laquelle tous les composants ont été livrés à Odin -->
- <Variable name="deliverDate" scope="attendee" type="long" default="0"/>
- <Dialog npc="thor">
- <Initialization>
- <Target entry="reward">
- <Conditions>
- <AssertStep step="8" operator="superiorEquals"/>
- </Conditions>
- </Target>
- <Target entry="package">
- <Conditions>
- <AssertStep step="1" operator="superiorEquals"/>
- </Conditions>
- </Target>
- <Target entry="grump">
- <Conditions>
- <AssertVar name="grumpy" operator="equals" value="false"/>
- </Conditions>
- </Target>
- <Target entry="hello"/>
- </Initialization>
- <!-- Bonjour -->
- <Entry name="hello">
- <Answer><Target entry="searchOdin"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- <Answer>
- <Target entry="&eod;">
- <Actions>
- <SetVar name="grumpy" value="true"/>
- </Actions>
- </Target>
- </Answer>
- </Entry>
- <!-- Bonjour quand Thor n'est pas content -->
- <Entry name="grump">
- <Answer><Target entry="searchOdin"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Va parler à Odin -->
- <Entry name="searchOdin">
- <Answer>
- <Target entry="&eod;">
- <Actions>
- <SetStep step="1"/>
- </Actions>
- </Target>
- </Answer>
- </Entry>
- <!-- Thor veut sa console mnémos -->
- <Entry name="package">
- <Answer>
- <Target entry="reward">
- <Actions>
- <TakeResources type="88" count="1"/>
- <SetStep step="8"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Récompense -->
- <Entry name="reward">
- <Answer>
- <Target entry="&eod;">
- <Actions>
- <GiveResources type="86" count="1"/>
- <ContractEnd success="true"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- </Dialog>
- <Dialog npc="odin">
- <Initialization>
- <Target entry="pirateAgain">
- <Conditions>
- <AssertStep step="6" operator="superiorEquals"/>
- </Conditions>
- </Target>
- <Target entry="pirate">
- <Conditions>
- <AssertStep step="5" operator="equals"/>
- <AssertVar name="deliverDate" operator="inferiorEquals" value="now()-2*60"/>
- </Conditions>
- </Target>
- <Target entry="wait">
- <Conditions>
- <AssertStep step="5" operator="equals"/>
- </Conditions>
- </Target>
- <Target entry="thirdComponentAgain">
- <Conditions>
- <AssertStep step="4" operator="equals"/>
- </Conditions>
- </Target>
- <Target entry="secondComponentAgain">
- <Conditions>
- <AssertStep step="3" operator="equals"/>
- </Conditions>
- </Target>
- <Target entry="firstComponentAgain">
- <Conditions>
- <AssertStep step="2" operator="equals"/>
- </Conditions>
- </Target>
- <Target entry="tool">
- <Conditions>
- <AssertStep step="1" operator="equals"/>
- </Conditions>
- </Target>
- <Target entry="hello"/>
- </Initialization>
- <!-- Bonjour quand le joueur n'a pas parlé à Thor -->
- <Entry name="hello">
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- J'ai besoin d'aide -->
- <Entry name="tool">
- <Answer>
- <Target entry="components">
- <Actions>
- <SetStep step="2"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Trouve le composant 1 -->
- <Entry name="firstComponent">
- <Answer>
- <Target entry="secondComponent">
- <Actions>
- <TakeResources type="60" count="1"/>
- <SetStep step="3"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="helpFirstComponent"/></Answer>
- <Answer><Target entry="helpSecondComponent"/></Answer>
- <Answer><Target entry="helpThirdComponent"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- As-tu trouvé le composant 1 ? -->
- <Entry name="firstComponentAgain">
- <Answer>
- <Target entry="secondComponent">
- <Actions>
- <TakeResources type="60" count="1"/>
- <SetStep step="3"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="helpFirstComponent"/></Answer>
- <Answer><Target entry="helpSecondComponent"/></Answer>
- <Answer><Target entry="helpThirdComponent"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Merci et trouve le composant 2 -->
- <Entry name="secondComponent">
- <Answer>
- <Target entry="secondComponent">
- <Actions>
- <TakeResources type="50" count="20"/>
- <SetStep step="4"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="helpSecondComponent"/></Answer>
- <Answer><Target entry="helpThirdComponent"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- As-tu trouvé le composant 2 ? -->
- <Entry name="secondComponentAgain">
- <Answer>
- <Target entry="secondComponent">
- <Actions>
- <TakeResources type="50" count="20"/>
- <SetStep step="4"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="helpSecondComponent"/></Answer>
- <Answer><Target entry="helpThirdComponent"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Merci et trouve le composant 3 -->
- <Entry name="thirdComponent">
- <Answer>
- <Target entry="thanks">
- <Actions>
- <TakeResources type="87" count="5"/>
- <SetVar name="deliverDate" value="now()"/>
- <SetStep step="5"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="helpThirdComponent"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- As-tu trouvé le composant 3 ? -->
- <Entry name="thirdComponentAgain">
- <Answer>
- <Target entry="thanks">
- <Actions>
- <TakeResources type="87" count="5"/>
- <SetVar name="deliverDate" value="now()"/>
- <SetStep step="5"/>
- </Actions>
- </Target>
- </Answer>
- <Answer><Target entry="helpThirdComponent"/></Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Où se trouve le composant 1 ? -->
- <Entry name="helpFirstComponent">
- <Answer hidden="true">
- <Target entry="helpSecondComponent">
- <Conditions>
- <AssertStep step="3" operator="inferiorEquals"/>
- </Conditions>
- </Target>
- </Answer>
- <Answer hidden="true">
- <Target entry="helpThirdComponent">
- <Conditions>
- <AssertStep step="4" operator="inferiorEquals"/>
- </Conditions>
- </Target>
- </Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Où se trouve le composant 2 ? -->
- <Entry name="helpSecondComponent">
- <Answer hidden="true">
- <Target entry="helpFirstComponent">
- <Conditions>
- <AssertStep step="2" operator="inferiorEquals"/>
- </Conditions>
- </Target>
- </Answer>
- <Answer hidden="true">
- <Target entry="helpThirdComponent">
- <Conditions>
- <AssertStep step="4" operator="inferiorEquals"/>
- </Conditions>
- </Target>
- </Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Où se trouve le composant 3 ? -->
- <Entry name="helpThirdComponent">
- <Answer hidden="true">
- <Target entry="helpFirstComponent">
- <Conditions>
- <AssertStep step="2" operator="inferiorEquals"/>
- </Conditions>
- </Target>
- </Answer>
- <Answer hidden="true">
- <Target entry="helpSecondComponent">
- <Conditions>
- <AssertStep step="3" operator="inferiorEquals"/>
- </Conditions>
- </Target>
- </Answer>
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Pas encore prêt -->
- <Entry name="wait">
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- <!-- Pas encore prêt -->
- <Entry name="pirate">
- <Answer>
- <Target entry="&eod;">
- <Actions>
- <RunScript name="spawnPirate"/>
- <SetStep step="6"/>
- </Actions>
- </Target>
- </Answer>
- </Entry>
- <!-- Depêche toi -->
- <Entry name="pirateAgain">
- <Answer><Target entry="&eod;"/></Answer>
- </Entry>
- </Dialog>
- </Contract>
Add Comment
Please, Sign In to add comment