I'm stuck with some dialog's display. Anyone can help me ?
Thanks.

Ethmo_Lux wrote: I was working on dialog, and some are very long. But it's easier form me to send them in one string. How can I split it without /n (cause it's buggy) ?
Here the code, I don't think it's optimized, still working on it.
Code: Select all
pnjName = "Victor" dialog = "Oh, so you come to see Victor! Afraid of Scotia's new toy ? Ha ha!\nWhy afraid? Look at Victor. Myself could use a shapechanger! Ha ha ha!\nYou show Victor what you want to buy. Maybe you show Victor what you sell, OK ?" secondDialog = "You again come to see Victor ?" byeDialog = "You again come visit, no?" fromShop = false function pnjTell(dialog) hudPrint(pnjName.." : "..dialog) end function pnjDialog() if not fromShop then pnjTell(dialog) fromShop = true end dialog = secondDialog end function pnjBye() if fromShop then pnjTell(byeDialog) fromShop = false end end
A trigger the door and pnjBye()
B trigger pnjDialog()