Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `id : "tuto_01", // Unique quest ID
- name : "Bienvenue dans Folks", // Quest name, for the quest diary
- pnj : "Julie", //Principal NPC name: his/her icon will be shown in the diary
- description : "Apprends à planter un arbre avec Julie !", // Quest description, for the diary
- unlock : {
- type : "autostart" // Special unlocking conditions
- },
- rewards : [ //Given once the quest is finished
- {
- type : "item",
- item : "apple",
- quantity : 2
- },
- {
- type : "xp",
- category : "fleurie",
- quantity : 100
- }
- ],
- objectives : [ // The quest steps
- {
- id : "tuto_01_01", //Unique objective ID
- text : "Cueillir un fruit", //Objective text for the diary
- startDialog : "tutoQuest0101", // Dialog launched at start, optionnal
- activateActions : { // Script launched at objective activation
- type : "sequence", // Script type
- script : {
- id : "tuto_01_00_script",
- content : [ // We can either put it here or specify a script name
- 'playState(state : "tuto_00");', // Special game states, created to block some of the player's actions during the tutorial
- 'movePNJToPlayer(pnjName : "julie");'
- ]
- }
- },
- startActions : { // Script launched at start
- type : "sequence",
- script : {
- id : "tuto_01_01_script",
- content : [
- 'playState(state : "tuto_01");',
- 'highlightUI(item : "shovel");', // Highlights a UI element
- 'highlightCase(x : 32, y : 32);',
- 'waitAction(type : "gameobjecthand", object : "tree");', // Waits for the player to use the "hand" tool on a "tree"
- 'playState(state : "normal");'
- ]
- }
- },
- starter : "launch", // Objective optionnal start behaviour
- ender : "startScript" // Dialog launched at the end of the objective
- },
- {
- id : "tuto_01_02",
- text : "Ramasser une graine",
- startpnj : "julie",
- autostart : true,
- startDialog : "tutoQuest0102",
- startActions : {
- type : "sequence",
- script : {
- id : "tuto_01_02_script",
- content : [
- 'waitAction(type : "gameobjectPick", object : "apple");' // Waits for the player to pick an Apple
- ]
- }
- },
- starter : "launch",
- ender : "startScript"
- },
- {
- id : "tuto_01_03",
- text : "Creuser un trou",
- startpnj : "julie",
- autostart : true,
- startDialog : "tutoQuest0103",
- startActions : {
- type : "sequence",
- script : {
- id : "tuto_01_03_script",
- content : [
- 'normal();',
- 'movePNJToPlayer(pnjName: "julie");',
- 'sequence();',
- 'waitAction(type : "gameobjectshovel", object : "ground");', // Waits for the player to dig a hole on the ground
- ]
- }
- },
- starter : "launch",
- ender : "startScript"
- },
- {
- id : "tuto_01_04",
- text : "Planter une graine",
- startpnj : "julie",
- autostart : true,
- startDialog : "tutoQuest0104",
- startActions : {
- type : "sequence",
- script : {
- id : "tuto_01_04_script",
- content : [
- 'waitAction(type : "gameobjectobject", object: "hole");' // Waits for the player to put something on the hole
- ]
- }
- },
- starter : "launch",
- ender : "startScript"
- },
- {
- id : "tuto_01_05",
- text : "Arroser un arbre",
- startpnj : "julie",
- autostart : true,
- startDialog : "tutoQuest0105",
- startActions : {
- type : "sequence",
- script : {
- id : "tuto_01_05_script",
- content : [
- 'waitAction(type : "gameobjectwateringcan", object : "buried");' // Waits for the player to water a burried seed
- ]
- }
- },
- starter : "launch",
- ender : "startScript",
- endpnj : "julie",
- endDialog : "tutoQuest0106"
- }
- ]`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement