mob/proc
CreateSReward(src.level)
text2file("mob/proc/Reward_[src.key][src.name][src.storiesmade]()","stories/[src.key][src.name][src.storiesmade].dm")
text2file(" spawn()src.Transition()","stories/[src.key][src.name][src.storiesmade].dm")
text2file(" sleep(6)","stories/[src.key][src.name][src.storiesmade].dm")
text2file(" src.Respawn()","stories/[src.key][src.name][src.storiesmade].dm")
text2file(" src.money+=[src.level*100]","stories/[src.key][src.name][src.storiesmade].dm")
Problem description:
I've been able to successfully create codes while in-game, so all I need to know now is how to call created procs while I'm in-game because atm I have to exit, compile, then run. Help me
If rebooting is not what you want, it would be better to create a script file that can be ran in the code. Pretty much for this, you create a bunch of commands and then parse them at runtime.
For example:
TRANSITION
WAIT 6
RESPAWN
REWARD MONEY #LEVEL#*100
Then you loop through each line extracting what you need.