The Dink Network

Fireball

July 17th 2003, 07:52 AM
duckdie.gif
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?
July 17th 2003, 09:40 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
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.
July 18th 2003, 03:17 AM
duckdie.gif
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???
July 18th 2003, 10:38 AM
peasantmb.gif
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....
July 18th 2003, 01:02 PM
anon.gif
Hugmungustes
Ghost They/Them
 
library.dat is created by WinDinkEdit
July 18th 2003, 01:44 PM
duckdie.gif
Thank you. Any idea about how to get rid of the fireball bug ?
July 18th 2003, 01:48 PM
peasantmb.gif
I think you should copy again the item-fb script from the Dink source.
Then it should work.
July 18th 2003, 01:59 PM
pig.gif

what a weird bug!
July 18th 2003, 02:01 PM
peasantmb.gif
It sure is.
July 18th 2003, 03:24 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
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?
July 19th 2003, 01:04 AM
duckdie.gif
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.
July 19th 2003, 01:10 AM
duckdie.gif
WAIT!! I used to use a variable that begins with &m... I deleted it and that seemed to work. Thank you so much Ric!!
July 20th 2003, 04:59 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
You're welcome, mabey that bug will get fixed soon
August 11th 2003, 07:20 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
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.