Problem with scripting for a new magic
I am working on a new magic. It is a "flash" type of magic. When Dink casts the magic, a series of "concentric" flashes would be generated within a short time. It will damage many (if not all) monsters in the screen.
I have created a series of graphics from 130x90 to 1300x900 bmp files for the flashes. However, I can only set the brain of the flash to 7 since I only want one series of flashes (then die). I also need to set the speed of the flash to be 0 since the flashes need to be concentric around Dink. The problem is the flashes don't hurt anybody.
I tried to change the hardbox of the flash sprites in Dink.ini; I tried using very long sp_range (600); but nothing worked. I did manage to do some damage to the monsters using a spawn("dam") and use hurt(&random_monster, 10), but that way Dink won't get any experience if the monsters were killed by the magic. I might be able to put
"&exp += 25;" or "add_exp(25, ¤t_sprite);" in die(void) instead of using sp_exp(¤t_sprite, 25); in main(void). But it seems that those solutions would fail if many monsters die at the "same" time. Just don't know why.
Any suggestions?
I have created a series of graphics from 130x90 to 1300x900 bmp files for the flashes. However, I can only set the brain of the flash to 7 since I only want one series of flashes (then die). I also need to set the speed of the flash to be 0 since the flashes need to be concentric around Dink. The problem is the flashes don't hurt anybody.
I tried to change the hardbox of the flash sprites in Dink.ini; I tried using very long sp_range (600); but nothing worked. I did manage to do some damage to the monsters using a spawn("dam") and use hurt(&random_monster, 10), but that way Dink won't get any experience if the monsters were killed by the magic. I might be able to put
"&exp += 25;" or "add_exp(25, ¤t_sprite);" in die(void) instead of using sp_exp(¤t_sprite, 25); in main(void). But it seems that those solutions would fail if many monsters die at the "same" time. Just don't know why.
Any suggestions?