Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <dialogue id="101" condition="!npc.carsFixed">
- <message>Man, fix my car!</message>
- <choices>
- <choice condition="hero.carFixingSkill > 5" priority="7" id="Sure!">
- <command>hero.carFixingSkills += 1</command>
- <command>npc.carFixed = true</command>
- <command>hero.playSmokeAnimation()</command>
- <command>nextDialogue = 104</command>
- </choice>
- <choice condition="hero.carFixingSkill <= 5" id="I can't...">
- <command>nextDialogue = 105</command>
- </choice>
- <choice id="Fix it yourself">
- <command>npc.likesHero -= 1</command>
- </choice>
- </choices>
- </dialogue>
- def dialogue101
- if !npc.carsFixed
- showMessage("Man, fix my car!")
- choices = []
- if hero.carFixingSkill > 5
- choices.push(Choice.new("Sure!", 7))
- else
- choices.push(Choice.new("I can't"))
- end
- choices.push(Choice.new("Fix it yourself"))
- choices = selectTopPriority(choices) if choices.size > 4
- result = showChoices(choices)
- case result
- when "Sure"
- hero.carFixingSkills += 1
- npc.carFixed = true
- hero.playSmokeAnimation
- dialogue104
- when "I can't"
- dialogue105
- when "Fix it yourself"
- npc.likesHero -= 1
- end
- end
- end
- <category>
- <pattern>WHAT ARE YOU</pattern>
- <template>
- <think><set name="topic">Me</set></think>
- I am the latest result in artificial intelligence,
- which can reproduce the capabilities of the human brain
- with greater speed and accuracy.
- </template>
Add Comment
Please, Sign In to add comment