Fireball
I've got a problem... In my dmod, a wizard gives the fireball magic to Dink, but when Dink uses it, the fireball always goes to the southwest. Can you help me?
That sounds odd...have you copied the item out of the source for the original? Even if you haven't I think it should work...but that problem sounds like a load of the script has been deleted...how queer.

I copied MAIN.c and item-fb.c from the original Dink, and it has been a while I'm trying to get rid of this problem. I copied the Dink.INI too, of course. This is really strange. I even found a file named 'library.DAT' in my DMOD folder... Very strange???
To develop a new d-mod, you should try the Skeleton B.
Only copy the .c files from the original Dink if you need to edit some of them.
Library.dat? strange....
Only copy the .c files from the original Dink if you need to edit some of them.
Library.dat? strange....
Thank you. Any idea about how to get rid of the fireball bug ?
I think you should copy again the item-fb script from the Dink source.
Then it should work.
Then it should work.
When you use a fireball the local var &mydir is used to set the direction, did you make a global variable that starts with &my and is currently set at 7?
Thank you, but this still doesn't work. And I don't think I made global variable that starts with &my. I copied the script many times.... The bug is still here.
WAIT!! I used to use a variable that begins with &m... I deleted it and that seemed to work. Thank you so much Ric!!

I somehow feel there's something odd with this theory: only 26 vars would be possible! One for each letter (Well, if &mydir and &mwhatever interfere...). The problems occurs when you've got a variable called &m and another called &mwhatever, and only in text strings (choice menu's and say() strings). How else would &magic, &magic_cost and &magic_level exist next to eachother.
To check this, do the following:
say("&magic &magic_cost &magic_level",1);
You'll see 3 times the &magic value, but in the second and the third case with _cost and _level added respectively. This bug REALLY should be fixed in a new version of the engine... cost me half an hour to find out.
To check this, do the following:
say("&magic &magic_cost &magic_level",1);
You'll see 3 times the &magic value, but in the second and the third case with _cost and _level added respectively. This bug REALLY should be fixed in a new version of the engine... cost me half an hour to find out.