Scripts / [SCRIPT] chatting in zone or with npc

Author
Message
mvdhoning
10
Years of Service
User Offline
Joined: 9th Mar 2015
Location:
Posted: 9th Mar 2015 17:52
My attempt a making menu like chat script



use M and N keys to move trough options and use B to select.

I am still puzzled by the coordinates for placing text on screen. Is a screen alway 100x100?

Things to improve:
- have different background image on selecting a current line
- wish there was a onafterkeypressed instead of now pressed not its a bit fidly
- have different colored fonts to show selection
- change to another lua script to continue a different topic
- add a chatglobal.lua and have config vars and functions for display and getting selection there so only textlines are in the lua that is attached to the entity.
PM
CR4CK3T
10
Years of Service
User Offline
Joined: 9th Mar 2015
Location: Deutschland
Posted: 24th Mar 2015 01:06 Edited at: 24th Mar 2015 11:40
Hello,. ; )

do not make it so


or so so


because the variable in the "function chat_main(e)" are always reloaded


make it so



and i refresh you code not perfect, but better in my eyes.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-04-04 11:44:02
Your offset time is: 2025-04-04 11:44:02