Creating Structs
Creating Structs
I am about to begin my new mapper so i thought that I had to create every room as a struct, that will contain a unique ID, the name, the description and the possible exits. Can I make it in lua somehow?
Re: Creating Structs
hmm....
can and I have (before the mapper was avalible)
I would recomend looking at how mudlet's mapper works and everything you can store in the map.
I think you will find that for storing your map (and all the info that you need to go with it) it is up to the task.
(I have created several mappers in pure Lua. The only really diffucult part is managing the storing of the information in a way that allows good preformance. the mapping api does this part very well, I recomend letting it).
Oh, If you are new to Lua.... read up on Lua tables.... they are your best friend when using data in scripting.
Good luck.
Omit
can and I have (before the mapper was avalible)
I would recomend looking at how mudlet's mapper works and everything you can store in the map.
I think you will find that for storing your map (and all the info that you need to go with it) it is up to the task.
(I have created several mappers in pure Lua. The only really diffucult part is managing the storing of the information in a way that allows good preformance. the mapping api does this part very well, I recomend letting it).
Oh, If you are new to Lua.... read up on Lua tables.... they are your best friend when using data in scripting.
Good luck.
Omit