thanx for that reply.. that was very useful. In fact after I wrote my message and went to sleep I realized Id misread the part in the book about retrieving player stats and that in fact he too exposes methods to get/set/check for stats just as your ModifyStat example does.
I am only planning on writing a small scale MUD ( just to see how to write one ) so I dont mind too much about the lack of multithreading though the hashtable type you wrote does sound like it would be useful as ( like you said ) i will be accessing data from scripts a LOT.
Im still not totally sure how I am supossed to implement lua in the game. ie .. load all the scripts I need as 1 huge file or load all the scripts individually into memory then use SetScriptText/RunScript for each call. Thanx for the book link... seems I have a lot more reading to do.
Thanx Again and
Good luck with your MUD
I am only planning on writing a small scale MUD ( just to see how to write one ) so I dont mind too much about the lack of multithreading though the hashtable type you wrote does sound like it would be useful as ( like you said ) i will be accessing data from scripts a LOT.
Im still not totally sure how I am supossed to implement lua in the game. ie .. load all the scripts I need as 1 huge file or load all the scripts individually into memory then use SetScriptText/RunScript for each call. Thanx for the book link... seems I have a lot more reading to do.
Thanx Again and
Good luck with your MUD