PDA

View Full Version : talkin



dtothabreezy
July 10th, 2006, 19:05
this is mt first attempt at an example for everybody to use in there lua if u use it plz include me in credits have fun

yaustar
July 10th, 2006, 19:35
Major problems with the code:
- It jumps from line 1 to line 3 very quickly as you don't define the difference from a key press and release.
- Inefficent. If you had a dialogue that was a hundred lines long, with this structure you have to create a variable and if statement for every line.

dalejrrocks
July 10th, 2006, 19:47
what is it?

yaustar
July 10th, 2006, 19:49
It's a text conversation done in lua.
Attached is a skeleton code without comments.

Forseen problems:
Large lines of text, how would you wrap it round the screen?
Scripting the dialogue engine to support a different number of characters.

dalejrrocks
July 10th, 2006, 20:10
look at some source like pspm or that court thing lua game for your forseen problems. they have awesome text engines.

dtothabreezy
July 10th, 2006, 21:13
made that in like 5 mins dont know how to define
a key press and release so i put it on a timer may be i dint include that i was just makin somethin quick to take my mind off my project i might work more on that tonight if i got time and its meant to be really easy becuz all you would have to do is rename line1 or 2 or 3 so you wouldnt have to redo it over and over ill make beter one lata :D if i got time