Frustration in scripting
:( :( :( :( :( :( :( :(
;( ;( ;( ;( ;( ;( ;( ;(
I am getting really frustrated lately. I got numerous bugs while trying to "improve" the scripts. So much for improvement!
To name a few:
How many scripts can be attached to "1000" at the same time? If you place a screen script at DinkEditor (by pressing B in a screen), can you use script_attach(1000); on that screen? While spawning a script, it is not attached to any sprite. Is it attached to "1000" as well?
When you are running a 1000 attached script, and then your level is raised at the same time. Since lraise.c will stop the entire game, after that, the script you were running before the raise simply vanished. How can you fix this problem?
And more... But I am not going to write any more. Now I understand why DMODs' release dates were always pushed later and later, or to forever...
;( :(
;( ;( ;( ;( ;( ;( ;( ;(
I am getting really frustrated lately. I got numerous bugs while trying to "improve" the scripts. So much for improvement!
To name a few:
How many scripts can be attached to "1000" at the same time? If you place a screen script at DinkEditor (by pressing B in a screen), can you use script_attach(1000); on that screen? While spawning a script, it is not attached to any sprite. Is it attached to "1000" as well?
When you are running a 1000 attached script, and then your level is raised at the same time. Since lraise.c will stop the entire game, after that, the script you were running before the raise simply vanished. How can you fix this problem?
And more... But I am not going to write any more. Now I understand why DMODs' release dates were always pushed later and later, or to forever...
;( :(