how do we escape the " marks in a lua script
StartDialogConversation(conversation, 2, Item, Player, "This book is titled - "Bird Watching: The Do's and Don'ts of Nektulos Forest". Many pages are missing from the book, but it may be possible to read bits and pieces of this field guide.")
escaping " in lua
Moderator: Team Members
- Ememjr
- Team Member
- Posts: 975
- Joined: Wed Mar 15, 2017 9:41 am
- EQ2Emu Server: Perseverance
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: escaping " in lua
Same way as in c++ with a \ so it would be \"
- Ememjr
- Team Member
- Posts: 975
- Joined: Wed Mar 15, 2017 9:41 am
- EQ2Emu Server: Perseverance
Re: escaping " in lua
whats c++
jk thanks just what i needed
jk thanks just what i needed
- Ememjr
- Team Member
- Posts: 975
- Joined: Wed Mar 15, 2017 9:41 am
- EQ2Emu Server: Perseverance
Re: escaping " in lua
can we insert control codes in a lua string line each line has a 0d 0d 0A after it
oh and as i am writting this i found that \r\r\n works
I will go ahead and post this for others to learn from
StartDialogConversation(conversation, 2, Item, Player, "Time and again we called your name
Little did we know
You'd lost your ears to the trolls
-- Ezzie Appledore, aged 49
Ezzie Appledore's neighbors always wondered why she didn't hear them; they thought she was too proud to associate with them. It wasn't until her death that they discovered she hadn't any ears, which would have made hearing a bit of a chore. ")
oh and as i am writting this i found that \r\r\n works
I will go ahead and post this for others to learn from
StartDialogConversation(conversation, 2, Item, Player, "Time and again we called your name
Little did we know
You'd lost your ears to the trolls
-- Ezzie Appledore, aged 49
Ezzie Appledore's neighbors always wondered why she didn't hear them; they thought she was too proud to associate with them. It wasn't until her death that they discovered she hadn't any ears, which would have made hearing a bit of a chore. ")
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: escaping " in lua
I don't know as I have never tried.Ememjr wrote: Mon Mar 25, 2019 4:07 am can we insert control codes in a lua string line each line has a 0d 0d 0A after it
Who is online
Users browsing this forum: No registered users and 0 guests