By default XML doesn't allow that. You can't have code within the XML and expect it to be run. Yet maybe the engine could be modified such that some variables / placeholders can be filled by some content. However to do so you should really specify why you need it and what you need.
Creator of Dot World Maker
Mad programmer and annoying composer
I want to create a free module for non-developer called "Timer"
This is a script from the jail and hospital module but modified to allow non-developer admin side to add a function for time:
Timer module:
-basically it will let admin to create any name for a time function and register the user variable. Which then allow them to use the time function that they created to any modules with an expiration time.
example: travel time for location, Can't use that modules until purchase a permit- after permit is expire it will ask for another permit.
So i just want to know how to add the user variables to the auto_defines.php automatically.
If not i might have to code it in and add the user variables to the database and edit the auto_defines.php with a script for this time module.
if you can help me by directing me to the location of the database or files that i should be working on that would be great. Thank You!
Edited: OK! i was able to script it and add the register the user variables for both the database and the auto_defines.php files. Now lets see it the files will work. i'll be working on it tonight.
When you use the module creator you just create the user variable in the text box at the bottom by just adding the name in there. During the install of the module it will automatically add the user variable constant and define its id and put it in auto_define.php. You shouldn't have to add anything special to the config file or the database for the user variables
Yeah that way is for developers that knows how to code. I'm trying to create a module where non-programmer can use the interval time without using any code.
This module will being using only UI to create function and register user variables. Allowing the admin to create a timer function for their game development with ease. No code involed.