Auto-Typing Dialogue

I worked and tweaked Grazer’s example with text lists to make this, pretty simple but I thought it could help some people that are making story games or dialogue with NPCs. You can change where the text breaks (starts a new line) by changing the max width in the label’s settings (32 is 1 grid on Flowlab, so 128 would be 4, 256 would be 8, 512 would be 16 and so on).

2 Likes

You can’t reply with General Kenobi :rage:

1 Like

then use the bundle in your game and make it so you can :wink:

1 Like

ok

1

image

2

image

3

image

If only you could hear the sound effect…

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":0,"name":"Sus Auto-Type Dialogue","behaviorType":"logic.NodeGroup","x":-630,"y":288,"group":"","id":"0865f76107083e47","notes":null,"n_o":null,"isMenuItem":true},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":180,"y":-32,"group":"0865f76107083e47","id":"0865e2c42a2b8143","notes":null,"n_o":0,"startVal":"","tag":null},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-180,"y":0,"group":"0865f76107083e47","id":"0865e2c4af292d4a","notes":null,"n_o":null,"startVal":"","tag":null},{"inputCount":1,"outputCount":2,"name":"Text List Each","behaviorType":"logic.data.ListEach","x":450,"y":0,"group":"0865f76107083e47","id":"0865e2c4ec00c546","notes":"output letters at a time with a delay.","n_o":1,"delay":0.5},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-90,"y":-224,"group":"0865f76107083e47","id":"0865e2c42023834c","notes":"assembles text","n_o":1,"startVal":"click to start","tag":null},{"comp_x":8,"comp_y":-1,"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label","x":180,"y":-256,"group":"0865f76107083e47","id":"0865e2c6f9e5b041","notes":"the part that players see, customize this to fit your game!","n_o":1,"text":"click to start","textColor":8775152,"fontName":"04b30","scale":10,"borderStyle":"Shadow","borderColor":7001063,"borderSize":4,"textAlign":"left","maxWidth":300,"version":2},{"inputCount":0,"outputCount":4,"name":"MouseClick","behaviorType":"logic.triggers.MouseClick","x":-450,"y":96,"group":"0865f76107083e47","id":"0865e2c62c318747","notes":null,"n_o":null,"global":true,"rightClick":false},{"inputCount":3,"outputCount":3,"name":"SoundEffect","behaviorType":"logic.components.SoundEffect","x":450,"y":288,"group":"0865f76107083e47","id":"0865e2c6885b884a","notes":null,"n_o":null,"sound":null,"loop":false,"volume":100,"url":null,"soundName":"940126u/AMONG-US-Sound-Effect.mp3","soundURL":"940126u/AMONG-US-Sound-Effect.mp3"},{"inputCount":1,"outputCount":1,"name":"Text Length","behaviorType":"logic.data.TextLength","x":450,"y":192,"group":"0865f76107083e47","id":"0865e2c61938f541","notes":null,"n_o":null},{"inputCount":7,"outputCount":5,"name":"Text List","behaviorType":"logic.data.TextList","x":0,"y":288,"group":"0865f76107083e47","id":"0865e2c73b46a84a","notes":"put dialogue in order here, to put in order click on your most recent one (the bottom most button) and type what you want then click add.","n_o":1,"startVal":["i love to eat chickens","SUS","When the imposter is Sus...","Guh"],"tag":null},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-450,"y":288,"group":"0865f76107083e47","id":"0865e2c7a66d294c","notes":null,"n_o":null,"startVal":1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-270,"y":288,"group":"0865f76107083e47","id":"0865e2c7c6be174b","notes":null,"n_o":null,"startVal":0,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":-450,"y":416,"group":"0865f76107083e47","id":"0865e2c71971ea45","notes":null,"n_o":null,"_startVal":0,"dataType":2},{"gateVal":3,"mode":"equal to","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter","x":-450,"y":576,"group":"0865f76107083e47","id":"0865e2c74c90c344","notes":"how much dialogue do you have?","n_o":1},{"delay":5,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":-270,"y":576,"group":"0865f76107083e47","id":"0865e2c8098e6c45","notes":"delay to fix code overlapping bug.","n_o":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-180,"y":416,"group":"0865f76107083e47","id":"0865e2c81385604d","notes":null,"n_o":null,"startVal":0,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":-630,"y":288,"group":"0865f76107083e47","id":"0865e2c854b27c49","notes":null,"n_o":null,"_startVal":1,"dataType":2}],"links":[{"input_id":"0865e2c4ec00c546i0","output_id":"0865e2c42a2b8143o1"},{"input_id":"0865e2c42023834ci0","output_id":"0865e2c4af292d4ao0"},{"input_id":"0865e2c42a2b8143i4","output_id":"0865e2c4af292d4ao0"},{"input_id":"0865e2c42023834ci3","output_id":"0865e2c4ec00c546o0"},{"input_id":"0865e2c61938f541i0","output_id":"0865e2c4ec00c546o0"},{"input_id":"0865e2c6f9e5b041i0","output_id":"0865e2c42023834co0"},{"input_id":"0865e2c854b27c49i2","output_id":"0865e2c62c318747o0"},{"input_id":"0865e2c71971ea45i2","output_id":"0865e2c62c318747o0"},{"input_id":"0865e2c6885b884ai0","output_id":"0865e2c61938f541o0"},{"input_id":"0865e2c42a2b8143i0","output_id":"0865e2c73b46a84ao1"},{"input_id":"0865e2c4af292d4ai1","output_id":"0865e2c73b46a84ao1"},{"input_id":"0865e2c7c6be174bi2","output_id":"0865e2c7a66d294co0"},{"input_id":"0865e2c73b46a84ai3","output_id":"0865e2c7c6be174bo0"},{"input_id":"0865e2c74c90c344i0","output_id":"0865e2c7c6be174bo0"},{"input_id":"0865e2c71971ea45i0","output_id":"0865e2c71971ea45o0"},{"input_id":"0865e2c81385604di1","output_id":"0865e2c71971ea45o0"},{"input_id":"0865e2c854b27c49i0","output_id":"0865e2c74c90c344o0"},{"input_id":"0865e2c8098e6c45i0","output_id":"0865e2c74c90c344o0"},{"input_id":"0865e2c71971ea45i1","output_id":"0865e2c8098e6c45o0"},{"input_id":"0865e2c7c6be174bi0","output_id":"0865e2c81385604do0"},{"input_id":"0865e2c7c6be174bi1","output_id":"0865e2c81385604do0"},{"input_id":"0865e2c854b27c49i1","output_id":"0865e2c81385604do0"},{"input_id":"0865e2c7a66d294ci1","output_id":"0865e2c854b27c49o0"}]}}}
1 Like

Thanks for editing the topic’s category grazer, i didn’t even know that one existed!

1 Like

Except I have a feeling these are new categories… and you edited the names.

2 Likes