From 944047a01bd12384f899c1c8513a74aba9b3e34a Mon Sep 17 00:00:00 2001 From: TheGuyThatMakesThings Date: Fri, 8 Aug 2025 19:42:46 +0000 Subject: [PATCH] Automated Extension submission for issue #1773 --- extensions/community/DialogHelper.json | 1614 ++++++++++++++++++++++++ 1 file changed, 1614 insertions(+) create mode 100644 extensions/community/DialogHelper.json diff --git a/extensions/community/DialogHelper.json b/extensions/community/DialogHelper.json new file mode 100644 index 000000000..89b122b15 --- /dev/null +++ b/extensions/community/DialogHelper.json @@ -0,0 +1,1614 @@ +{ + "author": "", + "category": "Game mechanic", + "extensionNamespace": "", + "fullName": "DialogHelper", + "gdevelopVersion": "", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQoJLnN0MXtmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCjwvc3R5bGU+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjEsNGMtMi4yLDAtNCwxLjgtNCw0djZ2NGw2LTNoM2MyLjIsMCw0LTEuOCw0LTRWOGMwLTIuMi0xLjgtNC00LTRIMjF6Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSI4IiB4Mj0iMjQiIHkyPSI4Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSIxMSIgeDI9IjIyIiB5Mj0iMTEiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xNyw4LjhjLTAuNi0wLjQtMS4zLTAuNy0yLTAuOGMtMS42LTAuMi0zLDAuNS0zLjksMS43QzEwLjQsOS41LDkuOCw5LjYsOSwxMC4yYy0wLjgsMC42LTEuMywxLjYtMS4zLDIuNg0KCWwwLDAuOHYxLjJ2MWMwLDEuOCwwLjksMy41LDIuNCw0LjRsMCwwYzAsMS44LTEuMywzLjQtMywzLjhDNSwyNC43LDMuNCwyNi4zLDMsMjguNUMzLDI4LjcsMy4yLDI5LDMuNCwyOWgxOC4xDQoJYzAuMywwLDAuNS0wLjMsMC40LTAuNWMtMC40LTIuMS0yLTMuOC00LjEtNC40Yy0xLjctMC40LTMtMi0zLTMuOCIvPg0KPC9zdmc+DQo=", + "name": "DialogHelper", + "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/Users/8dfa4c4c902002c40d225926583c3768d2c5c35e433ac7feaba5f09915d8dfa9_Users_user_chat_talk.svg", + "shortDescription": "Adds easy to use dialog boxes.", + "version": "1.0.1", + "description": [ + "This is basically a remake of PANDAKO's old extension but instead using custom objects so that you don't have to do it yourself.", + "", + "## This extension has many bugs and quirks", + "It is not coded perfectly and it has some limitations.", + "", + "Limitations:", + "- Only 2 choices are supported at once.", + "- Some features are broken or straight up not implemented even if it looks like they are." + ], + "tags": [ + "dialog", + "easy" + ], + "authorIds": [ + "RDqSAIJPgsYcovlif9euoVfJAOz1" + ], + "dependencies": [], + "globalVariables": [], + "sceneVariables": [ + { + "name": "CurrentWord", + "type": "string", + "value": " " + }, + { + "name": "CurrentLetterNumber", + "type": "number", + "value": 1 + }, + { + "name": "PlayingDialog", + "type": "boolean", + "value": false + }, + { + "name": "DialogChoice1", + "type": "string", + "value": "" + }, + { + "name": "DialogChoice2", + "type": "string", + "value": "" + }, + { + "name": "HoveredChoiceIndex", + "type": "number", + "value": 1 + }, + { + "name": "SelectedChoice", + "type": "string", + "value": "" + }, + { + "name": "ActiveChoices", + "type": "boolean", + "value": false + } + ], + "eventsFunctions": [], + "eventsBasedBehaviors": [], + "eventsBasedObjects": [ + { + "areaMaxX": 1113, + "areaMaxY": 229, + "areaMaxZ": 1, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "defaultName": "DialogBox", + "description": "Allows for easy custom dialog.", + "fullName": "Dialog Box", + "isTextContainer": true, + "isUsingLegacyInstancesRenderer": false, + "name": "Dialog_Box", + "objects": [ + { + "assetStoreId": "", + "height": 32, + "name": "DialogBoxBG", + "texture": "NewTiledSprite", + "type": "TiledSpriteObject::TiledSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [] + }, + { + "assetStoreId": "", + "name": "DialogText", + "type": "BBText::BBText", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "text": "hi", + "opacity": 255, + "fontSize": 20, + "visible": true, + "color": "255;255;255", + "fontFamily": "956a1314d3eda5bdbfe43362008ef0b147053bc8fcd9fa5a38ed244af8445197_WorkSans-Regular.ttf", + "align": "left", + "verticalTextAlignment": "top" + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Options1", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "choice", + "font": "5e2e3fcc57885d5e510934e621be5f8dd7a5b6425cf46ef38073e3d2c3b04048_Kenney Mini Square.ttf", + "textAlignment": "left", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "choice", + "font": "5e2e3fcc57885d5e510934e621be5f8dd7a5b6425cf46ef38073e3d2c3b04048_Kenney Mini Square.ttf", + "textAlignment": "left", + "verticalTextAlignment": "top", + "characterSize": 20, + "color": "255;255;255" + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Options2", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "choice", + "font": "5e2e3fcc57885d5e510934e621be5f8dd7a5b6425cf46ef38073e3d2c3b04048_Kenney Mini Square.ttf", + "textAlignment": "left", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "choice", + "font": "5e2e3fcc57885d5e510934e621be5f8dd7a5b6425cf46ef38073e3d2c3b04048_Kenney Mini Square.ttf", + "textAlignment": "left", + "verticalTextAlignment": "top", + "characterSize": 20, + "color": "255;255;255" + } + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "DialogBoxBG" + }, + { + "objectName": "DialogText" + }, + { + "objectName": "Options1" + }, + { + "objectName": "Options2" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": true, + "depth": 1, + "height": 229, + "keepRatio": true, + "layer": "", + "name": "DialogBoxBG", + "persistentUuid": "7c71ead8-7472-4500-9447-1c7cdcb39f70", + "width": 1113, + "x": 0, + "y": 0, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 1, + "height": 137, + "keepRatio": true, + "layer": "", + "name": "DialogText", + "persistentUuid": "840c9fb0-bbec-4df3-befa-6694d67ba8e2", + "width": 1091, + "x": 7, + "y": 27, + "zOrder": 8, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 1, + "height": 28, + "keepRatio": true, + "layer": "", + "name": "Options1", + "persistentUuid": "6bbe06ba-c818-46bc-b41c-9caf0c9962dd", + "width": 277, + "x": 824, + "y": 164, + "zOrder": 9, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 1, + "height": 33, + "keepRatio": true, + "layer": "", + "name": "Options2", + "persistentUuid": "db7597d3-16a1-4334-bf8f-13345dc597ea", + "width": 270, + "x": 823, + "y": 190, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "doStepPostEvents", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "True", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "ResetTimer" + }, + "parameters": [ + "", + "\"TypewriterTimer\"" + ] + }, + { + "type": { + "value": "BBText::SetBBText" + }, + "parameters": [ + "DialogText", + "=", + "\"\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "True", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "StringVariable" + }, + "parameters": [ + "DialogString", + "startsWith", + "\" \"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "DialogString", + "=", + "\" \" + DialogString" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "TypewriterEffect", + "False", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "BBText::SetBBText" + }, + "parameters": [ + "DialogText", + "=", + "DialogString" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "TypewriterEffect", + "True", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "StrLength(CurrentWord)", + "<", + "StrLength(DialogString)" + ] + }, + { + "type": { + "value": "CompareTimer" + }, + "parameters": [ + "", + "\"TypewriterTimer\"", + ">=", + "TypewriterEffectDelay" + ] + } + ], + "actions": [ + { + "type": { + "value": "BBText::SetBBText" + }, + "parameters": [ + "DialogText", + "=", + "CurrentWord" + ] + }, + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "CurrentWord", + "=", + "CurrentWord + StrAt(DialogString, CurrentLetterNumber)" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CurrentLetterNumber", + "+", + "1" + ] + }, + { + "type": { + "value": "ResetTimer" + }, + "parameters": [ + "", + "\"TypewriterTimer\"" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "StrLength(CurrentWord)", + "=", + "StrLength(DialogString)" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "WaitForInput", + "False", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "False", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Wait" + }, + "parameters": [ + "DialogBoxHangPeriod" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CurrentLetterNumber", + "=", + "1" + ] + }, + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "CurrentWord", + "=", + "\" \"" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "False", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "StrLength(CurrentWord)", + "=", + "StrLength(DialogString)" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "WaitForInput", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "False", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "KeyFromTextReleased" + }, + "parameters": [ + "", + "InputToWaitFor" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CurrentLetterNumber", + "=", + "1" + ] + }, + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "CurrentWord", + "=", + "\" \"" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "False", + "" + ] + } + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Montre" + }, + "parameters": [ + "Object", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "False", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Object" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "BBText::SetWordWrap" + }, + "parameters": [ + "DialogText", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Montre" + }, + "parameters": [ + "Options2", + "" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "Options1", + "" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "!=", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "Options1", + "Text", + "=", + "DialogChoice1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "!=", + "2" + ] + } + ], + "actions": [ + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "Options2", + "Text", + "=", + "DialogChoice2" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "=", + "2" + ] + } + ], + "actions": [ + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "Options2", + "Text", + "=", + "\"> \" + DialogChoice2" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "=", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "Options1", + "Text", + "=", + "\"> \" + DialogChoice1" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "False", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Options1" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Options2" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "KeyFromTextReleased" + }, + "parameters": [ + "", + "DownInput" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "+", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "KeyFromTextReleased" + }, + "parameters": [ + "", + "UpInput" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "-", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "<", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "=", + "2" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + ">", + "2" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "=", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "True", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "KeyFromTextReleased" + }, + "parameters": [ + "", + "InputToWaitFor" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "=", + "1" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "SelectedChoice", + "=", + "DialogChoice1" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "False", + "" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "False", + "" + ] + }, + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "CurrentWord", + "=", + "\" \"" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CurrentLetterNumber", + "=", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "NumberVariable" + }, + "parameters": [ + "HoveredChoiceIndex", + "=", + "2" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "SelectedChoice", + "=", + "DialogChoice2" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "False", + "" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "False", + "" + ] + }, + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "CurrentWord", + "=", + "\" \"" + ] + }, + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "CurrentLetterNumber", + "=", + "1" + ] + } + ] + } + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "DialogHelper::Dialog_Box", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Returns the last choice made in dialog.", + "fullName": "Last Dialog Choice", + "functionType": "StringExpression", + "group": "Dialog Helper", + "name": "LastDialogChoice", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnString" + }, + "parameters": [ + "SelectedChoice" + ] + } + ] + } + ], + "expressionType": { + "type": "string" + }, + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "DialogHelper::Dialog_Box", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Checks if the last dialog choice is equal to a paramater.", + "fullName": "Is Dialog Choice Equal To?", + "functionType": "Condition", + "group": "Dialog Helper", + "name": "DialogCompare", + "sentence": "Checks if the last dialog choice of _PARAM0_ is equal to _PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "StringVariable" + }, + "parameters": [ + "SelectedChoice", + "=", + "Compareto" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "StringVariable" + }, + "parameters": [ + "SelectedChoice", + "=", + "Compareto" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "False" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "DialogHelper::Dialog_Box", + "type": "object" + }, + { + "description": "The text to compare the last dialog choice to", + "name": "Compareto", + "type": "string" + } + ], + "objectGroups": [] + }, + { + "description": "Checks if dialog is completed.", + "fullName": "Is Dialog Complete?", + "functionType": "Condition", + "group": "Dialog Helper", + "name": "DialogComplete", + "sentence": "Is dialog completed? _PARAM0_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "=", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "False" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "DialogHelper::Dialog_Box", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Add choices to the dialog box.", + "fullName": "Add choices", + "functionType": "Action", + "group": "Dialog Helper", + "name": "AddChoices", + "sentence": "Add choices _PARAM1_ _PARAM2_ to _PARAM0_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "DialogChoice1", + "=", + "choice1" + ] + }, + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "DialogChoice2", + "=", + "choice2" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ActiveChoices", + "True", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "DialogHelper::Dialog_Box", + "type": "object" + }, + { + "description": "Choice 1", + "name": "choice1", + "type": "string" + }, + { + "description": "Choice 2", + "name": "choice2", + "type": "string" + } + ], + "objectGroups": [] + }, + { + "description": "Play the dialog out.", + "fullName": "Play Dialog", + "functionType": "Action", + "group": "Dialog Helper", + "name": "PlayDialog", + "sentence": "Plays the dialog currently inputted into the object _PARAM0_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "PlayingDialog", + "True", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "DialogHelper::Dialog_Box", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Change what will be said next time dialog is activated.", + "fullName": "Change Dialog Text", + "functionType": "Action", + "group": "Dialog Helper", + "name": "ChangeDialogText", + "sentence": "Change dialog text of _PARAM0_ to _PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "DialogString", + "=", + "\" \" + DialogChangedText" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "DialogHelper::Dialog_Box", + "type": "object" + }, + { + "description": "New Text", + "name": "DialogChangedText", + "type": "string" + } + ], + "objectGroups": [] + } + ], + "propertyDescriptors": [ + { + "value": "", + "type": "String", + "label": "The text to be displayed during dialog", + "description": "The text that will be displayed when dialog is being played.", + "group": "Contents", + "name": "DialogString" + }, + { + "value": "true", + "type": "Boolean", + "label": "Typewriter Effect?", + "description": "Adds every character manually in order to make it feel like the letters are being manually typed out.", + "group": "Effects", + "name": "TypewriterEffect" + }, + { + "value": "0.3", + "type": "Number", + "unit": "Second", + "label": "Typewriter Effect Delay", + "description": "The delay between each character's addition. (Required for Typewriter Effect.)", + "group": "Effects", + "name": "TypewriterEffectDelay" + }, + { + "value": "1", + "type": "Number", + "unit": "Second", + "label": "Dialog Box Hang Period", + "description": "How long the dialog box will stay after all jobs relating to text have been completed.", + "group": "Effects", + "name": "DialogBoxHangPeriod" + }, + { + "value": "", + "type": "Boolean", + "label": "Wait for input? (This does work with choices, don't worry.)", + "description": "If checked, it waits for an input before disappearing, if otherwise unchecked, it will instead wait for the dialog hang period to finish instead.", + "group": "Input", + "name": "WaitForInput" + }, + { + "value": "z", + "type": "String", + "label": "Select/Continue Input", + "description": "(Reccomended) Main input for choices and closing dialog with input.", + "group": "Input", + "name": "InputToWaitFor" + }, + { + "value": "Up", + "type": "String", + "label": "Up Input (For choices)", + "description": "(Reccomended) The input for going up when selecting choices.", + "group": "Input", + "name": "UpInput" + }, + { + "value": "Down", + "type": "String", + "label": "Down Input (For choices)", + "description": "(Reccomended) The input for going down when selecting choices.", + "group": "Input", + "name": "DownInput" + } + ] + } + ] +} \ No newline at end of file