Module Roomscript
def Rscript_1333(player)
r = self
r.name = "Changed." # just to show we did something.
end
end
rscript = "Rscript_#{room.vnum}" # 'Rscript_1333'
room.send(rscript, player)
Module Roomscript
def Rscript_1333
Script.room_is_dark()
Script.kill_all_mobs()
Script.whatever_else_you_would_want_to_do()
end
end
by creating individual files for rooms. the rooms vnum would match the script file
so that if you wanted to make changes, you could do it on the fly.
likewise, you would have a .yml file to design the room, which would be loaded
during each reset. please consider that i have an OLC, but i cant access it at work
to build my mud, so i am limited to web and notepad, otherwise i would do it differently.
1333.rb:
Ok, so now we have two files per room, a script file and a yml file.
so wouldn't it work whenever we need to call the script to do this?