isn't the best choice for making action games(It
works in some cases, but... you get what I mean). So
I've been using game maker 8 recently. I don't like
it much in comparison to DM, but it's a next best
for stupid people like myself. So, I decided to
create a mod tool with DM, and I'm going to give you
a simple idea of how you could do this yourself.
So, let's go to Game maker(I'm using GM 8.1)
Go ahead and create a new object called
mod_handler, and add a step, create, and draw
events.
Now, close down the object window and make a new
script called "Execute_File" or something of the
such. close that down, we'll be back to it in a
second, and reopen mod_handler, add execute_code
nodes to each of the events you created and in
each of them write "Execute_File("Eventname.dat")"
Good job, now for the cool part. GML, game maker
language allows you to use a function called
"execute_code" which will, believe it or not, run
the code within it. so back to Execute_File() and
add the following to it
"execute_string(file_text_read_string(file_text_open_read(arg ument0)); file_close()"
That's about all we need for GM, to Dream Maker!
Let's create a verb called Export_Code, and for my
example, I'm making a mapmaker that picks up an
object's name to add a string called finalcode
finalcode=""
for(var/obj/A in world)
if(A.name=="wall")
finalcode="[finalcode]instance_create([A.x*32],[A.y*32],obj_nachtwall);"
So after you do whatever it is you need to do to
determine the final code, you'll need to save the
file
To do this, you could do something like
var/mapname=input(src,"Save map as?") as text
new/savefile/("[mapname].map")
text2file("[finalcode]",file("Eventname.dat"))
I'm sorry the tutorial is so shitty, I'm not exactly the most helpful person... :(