Note:I am currently using a mobile device so there might be some typos and grammical mistakes. Hello, I have been wanting to create a dndsystem on a server that does not have a rolling system or anything so Iwas wondering if it was possible to create a mod that could roll for you in chat or a item that can roll somehow without server support. Us this even possible or would the just cause problems? Note: I would ask the server owner about this but he is currently inactive. Apologies if this thread is put in the wrong section, never been on this side of the forums.
You can easily create a placeable object which prints a random number every time you interact with it., A template code would be along the lines of; Code: function onInteraction(args) randomNum = math.random(1,24) return { "ShowPopup", { message = randomNum } } end You need to convert it to a string but that would be the basic idea of doing it.
Alright, thanks for the help. But with that said now I barely know any modding, would there be a tutorial for this located aome where or would someone be willing to do this for me? Looked around for a tutorial and couldnt find one. I will create it myaelf if there is a tutorial located aome where.. unless this is advanced stuff. Note:I am currently using a mobile device so there might be some typos and grammical mistakes.
No in order to use it effectively you do need to know Lua. With that said - in terms of knowledge all you would have to do is essentially add a script to an object with this line and you should be ok. Since this is an actual program script its not something you write tutorials for. So you are going to either have to learn Lua or implement it by referencing vanilla items such as Iron Beacon, which implements something similar.