How do I display a variable in dialogs? How would I do something like in the example below?
Example:
You took v[apple_amount] apples.
apple_amount would be a variable equal to some number.
You took 20 apples.
Which dialog box script are you using?
The one from your old 1.3 tutorials on YouTube. Is it possible with the dialogs.dat file? I noticed I think it was $v, but I am not sure if that has anything to do with variables in the map script.
I basically want to display a variable amount in the dialogs text.
First you should update to the dialog box script of the 1.5 tutorials as explained here: https://www.youtube.com/watch?v=iG0YRerYphg
Anyway, with this one or the old one, the dialog box script replaces the "$v" sequence by the value of the info parameter you pass to game:start_dialog(dialog_id, [info], [callback]).
Example:
local value = 42
game:start_dialog("my_dialog", value)
You are the best Christopho! Worked pefectly.