-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.2: added dialogue text animation, improved bbcode support
- Loading branch information
Showing
8 changed files
with
62 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"0_1":{"link":"1_2","offset":{"x":0,"y":0},"start_id":"START"},"1_2":{"dialogue":"Do you want learn about [u]bbcodes[/u]?","offset":{"x":200,"y":0},"options":{"0":{"link":"1_6","text":"yah"},"1":{"link":"1_4","text":"Nah"}},"size":{"x":279.000122,"y":282},"speaker":"Fred"},"1_4":{"dialogue":"[shake rate=20 level=6]Oh too bad. :([/shake]","offset":{"x":540,"y":220},"options":{"0":{"link":"1_6","text":"On second thoughts..."},"1":{"link":"END","text":"Sorry"}},"size":{"x":388.999939,"y":282},"speaker":"Fred"},"1_6":{"dialogue":"Ok so, in the dialogue section of a dialogue Node, you can insert special keywords between [ ] to have certain effects.","offset":{"x":540,"y":-60},"options":{"0":{"link":"1_7","text":""}},"size":{"x":383.999939,"y":255},"speaker":"Fred"},"1_7":{"dialogue":"For example:\nputting the letter u between [ ] gives [u]text an underline[/u].\nEnd the effect with [/*], where * is the name of the effect (here, u).","offset":{"x":960,"y":-60},"options":{"0":{"link":"1_8","text":""}},"size":{"x":533.000122,"y":255},"speaker":"Fred"},"1_8":{"dialogue":"Some more examples:\n[ [fade length=5] fade [/fade] ]\n\n[ [color=red] color=red [/color] ]\n\n[ [shake rate=20 level=6] shake rate=15 level=6 [/shake] ]\n\n[ [wave] wave [/wave] ]\n\n[ [tornado] tornado [/tornado]]\n\n[ [rainbow] rainbow [/rainbow] ]","offset":{"x":1540,"y":-60},"options":{"0":{"link":"1_9","text":""}},"size":{"x":311.000122,"y":440},"speaker":"Fred"},"1_9":{"dialogue":"you can even combine effects like:\n[E1] [E2] text [/E2] [E1]\nWhere E1 and E2 could be anything.\n\n[rainbow] [wave] Example: Rainbow + Wave [/wave] [/rainbow]","offset":{"x":1900,"y":-60},"options":{"0":{"link":"1_6","text":"One more time?"},"1":{"link":"END","text":"Ok got it!"}},"size":{"x":429.998779,"y":312},"speaker":"Fred"},"2_1":{"comment":"This example shows how to use bbcodes in your dialogues, as well as an example of a looping dialogue tree.","offset":{"x":-20,"y":100},"size":{"x":200.000168,"y":200.000015}},"comments":{"0":"2_1"},"start":{"START":"0_1"},"strays":{},"variables":{}} | ||
{"0_1":{"link":"1_2","offset":{"x":0,"y":0},"start_id":"START"},"0_2":{"link":"1_5","offset":{"x":0,"y":600},"start_id":"WAIT"},"1_1":{"dialogue":"[wait speed=5]1 2 3 4[/wait][shake rate=45 level=7]\n[wait speed=500 time=1.5]I[/wait] [wait speed=500 time=2]DECLARE[/wait] [wait speed=500 time=2.5]A THUMB[/wait] [wait speed=500 time=3]WAR![/wait]","offset":{"x":640,"y":600},"options":{"0":{"link":"1_3","text":""}},"size":{"x":601,"y":254.999756},"speaker":"Martha"},"1_10":{"dialogue":"[wait speed=10000]This text has custom speed. It does not use the default animation.\nWanna see a more complex example?","offset":{"x":420,"y":600},"options":{"0":{"link":"1_1","text":""}},"size":{"x":200.000122,"y":254.999756},"speaker":"Martha"},"1_2":{"dialogue":"Do you want learn about [u]bbcodes[/u]?","offset":{"x":200,"y":0},"options":{"0":{"link":"1_6","text":"yah"},"1":{"link":"1_4","text":"Nah"}},"size":{"x":279.000549,"y":282},"speaker":"Fred"},"1_3":{"dialogue":"Hey!\nDo you wanna play or not?","offset":{"x":1260,"y":600},"options":{"0":{"link":"END","text":"Sure!"},"1":{"link":"END","text":"Umm..."}},"size":{"x":200.000488,"y":281.999756},"speaker":"Martha"},"1_4":{"dialogue":"[shake rate=20 level=6]Oh too bad. :([/shake]","offset":{"x":540,"y":220},"options":{"0":{"link":"1_6","text":"On second thoughts..."},"1":{"link":"END","text":"Sorry"}},"size":{"x":388.999878,"y":282.000061},"speaker":"Fred"},"1_5":{"dialogue":"This text has default animation. It works without adding anything.","offset":{"x":200,"y":600},"options":{"0":{"link":"1_10","text":""}},"size":{"x":200.000183,"y":254.999756},"speaker":"Martha"},"1_6":{"dialogue":"Ok so, in the dialogue section of a dialogue Node, you can insert special keywords between [ ] to have certain effects.","offset":{"x":540,"y":-60},"options":{"0":{"link":"1_7","text":""}},"size":{"x":383.999634,"y":255},"speaker":"Fred"},"1_7":{"dialogue":"For example:\nputting the letter u between [ ] gives [u]text an underline[/u].\nEnd the effect with [/*], where * is the name of the effect (here, u).","offset":{"x":960,"y":-60},"options":{"0":{"link":"1_8","text":""}},"size":{"x":533.000244,"y":255},"speaker":"Fred"},"1_8":{"dialogue":"Some more examples:\n[ [fade length=5] fade [/fade] ]\n\n[ [color=red] color=red [/color] ]\n\n[ [shake rate=20 level=6] shake rate=15 level=6 [/shake] ]\n\n[ [wave] wave [/wave] ]\n\n[ [tornado] tornado [/tornado]]\n\n[ [rainbow] rainbow [/rainbow] ]","offset":{"x":1540,"y":-60},"options":{"0":{"link":"1_9","text":""}},"size":{"x":311,"y":440.000061},"speaker":"Fred"},"1_9":{"dialogue":"you can even combine effects like:\n[E1] [E2] text [/E2] [E1]\nWhere E1 and E2 could be anything.\n\n[rainbow] [wave] Example: Rainbow + Wave [/wave] [/rainbow]","offset":{"x":1900,"y":-60},"options":{"0":{"link":"1_6","text":"One more time?"},"1":{"link":"END","text":"Ok got it!"}},"size":{"x":429.997803,"y":312},"speaker":"Fred"},"2_1":{"comment":"This example shows how to use bbcodes in your dialogues, as well as an example of a looping dialogue tree.","offset":{"x":-20,"y":100},"size":{"x":200.000366,"y":200.000015}},"comments":{"0":"2_1"},"start":{"START":"0_1","WAIT":"0_2"},"strays":{},"variables":{}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"0_1":{"link":"1_1","offset":{"x":0,"y":0},"start_id":"SIGNALS"},"0_2":{"link":"1_5","offset":{"x":0,"y":260},"start_id":"SETGET"},"0_3":{"link":"1_3","offset":{"x":0,"y":540},"start_id":"CONDITION"},"1_1":{"dialogue":"Wanna see an explosion?","offset":{"x":200,"y":0},"options":{"0":{"link":"3_1","text":"Yeah!"},"1":{"link":"1_2","text":"Nah!"}},"size":{"x":200.000183,"y":255},"speaker":"Fred"},"1_2":{"dialogue":"Bye bye!","offset":{"x":680,"y":0},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000305,"y":255},"speaker":"Fred"},"1_3":{"dialogue":"This item costs $8","offset":{"x":200,"y":540},"options":{"0":{"link":"5_1","text":"Buy it!"}},"size":{"x":200,"y":228},"speaker":"Harold"},"1_4":{"dialogue":"Ok","offset":{"x":680,"y":540},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000061,"y":228},"speaker":"Harold"},"1_5":{"dialogue":"You have {{Coins}} coins.","offset":{"x":200,"y":260},"options":{"0":{"link":"4_1","text":"Buy item"}},"size":{"x":200,"y":228},"speaker":"Luke"},"1_6":{"dialogue":"Now, you have {{Coins}} left!","offset":{"x":680,"y":260},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000061,"y":228},"speaker":"Luke"},"1_7":{"dialogue":"You can't afford that!","offset":{"x":680,"y":800},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000061,"y":228},"speaker":"Harold"},"2_1":{"comment":"You can add Signal Nodes in the paths to emit signals.","offset":{"x":-20,"y":80},"size":{"x":200.000122,"y":130.000031}},"2_2":{"comment":"You can even add, get and set variables within the dialogue tree.","offset":{"x":-20,"y":340},"size":{"x":200.000122,"y":141.000061}},"2_3":{"comment":"Condition nodes can be used to control the flow of dialogues.","offset":{"x":-20,"y":620},"size":{"x":201.000122,"y":143.000061}},"3_1":{"link":"1_2","offset":{"x":440,"y":0},"signalValue":"explode"},"4_1":{"link":"1_6","offset":{"x":420,"y":280},"type":2,"value":"3","variable":"Coins"},"5_1":{"false":"1_7","offset":{"x":420,"y":560},"operator":4,"true":"1_4","value1":"{{Coins}}","value2":"8"},"comments":{"0":"2_1","1":"2_2","2":"2_3"},"start":{"CONDITION":"0_3","SETGET":"0_2","SIGNALS":"0_1"},"strays":{},"variables":{"Coins":{"type":2,"value":"10"},"Name":{"type":4,"value":"Joe Biden"},"Subbed":{"type":1,"value":"true"}}} | ||
{"0_1":{"link":"1_1","offset":{"x":0,"y":0},"start_id":"SIGNALS"},"0_2":{"link":"1_5","offset":{"x":0,"y":400},"start_id":"SETGET"},"0_3":{"link":"1_3","offset":{"x":0,"y":800},"start_id":"CONDITION"},"1_1":{"dialogue":"Wanna see an explosion?","offset":{"x":200,"y":0},"options":{"0":{"link":"3_1","text":"Yeah!"},"1":{"link":"1_2","text":"Nah!"}},"size":{"x":200.000214,"y":282},"speaker":"Fred"},"1_2":{"dialogue":"Bye bye!","offset":{"x":680,"y":0},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000488,"y":255.000061},"speaker":"Fred"},"1_3":{"dialogue":"This item costs $8","offset":{"x":200,"y":800},"options":{"0":{"link":"5_1","text":"Buy it!"}},"size":{"x":200,"y":255},"speaker":"Harold"},"1_4":{"dialogue":"Ok","offset":{"x":680,"y":800},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000244,"y":255},"speaker":"Harold"},"1_5":{"dialogue":"You have {{Coins}} coins.","offset":{"x":200,"y":400},"options":{"0":{"link":"4_1","text":"Buy item"}},"size":{"x":200,"y":255.000092},"speaker":"Luke"},"1_6":{"dialogue":"Now, you have {{Coins}} left!","offset":{"x":680,"y":400},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000244,"y":255.000092},"speaker":"Luke"},"1_7":{"dialogue":"You can't afford that!","offset":{"x":680,"y":1060},"options":{"0":{"link":"END","text":""}},"size":{"x":200.000244,"y":255},"speaker":"Harold"},"2_1":{"comment":"You can add Signal Nodes in the paths to emit signals.","offset":{"x":-20,"y":80},"size":{"x":200.000183,"y":130.000061}},"2_2":{"comment":"You can even add, get and set variables within the dialogue tree.","offset":{"x":-20,"y":480},"size":{"x":200.000183,"y":141.000122}},"2_3":{"comment":"Condition nodes can be used to control the flow of dialogues.","offset":{"x":-20,"y":880},"size":{"x":201.000183,"y":143.000122}},"3_1":{"link":"1_2","offset":{"x":440,"y":0},"signalValue":"explode"},"4_1":{"link":"1_6","offset":{"x":420,"y":420},"type":2,"value":"3","variable":"Coins"},"5_1":{"false":"1_7","offset":{"x":420,"y":820},"operator":4,"true":"1_4","value1":"{{Coins}}","value2":"8"},"comments":{"0":"2_1","1":"2_2","2":"2_3"},"start":{"CONDITION":"0_3","SETGET":"0_2","SIGNALS":"0_1"},"strays":{},"variables":{"Coins":{"type":2,"value":"10"},"Name":{"type":4,"value":"Joe Biden"},"Subbed":{"type":1,"value":"true"}}} |