The Dink Network

Another fail!

August 2nd 2010, 10:26 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Every time I equip my fireball, the game dies. The reason is because there is no charge icon around the fireball graphic. I've been looking everywhere for what could be causing this. I haven't done anything to my fireball script or any of the icons. I'm at a total loss! WHY DO I SUCK?!
August 3rd 2010, 01:41 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Because licking is boring.
August 3rd 2010, 01:42 AM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
....
August 3rd 2010, 03:53 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Can you show us the fireball's script and the lines you used to add the fireball magic? Also, please double check if you used the correct name for the fireball script.
August 3rd 2010, 04:55 AM
spike.gif
It's probably a problem with the wooden status bar... If stat-05, 06 and 07.bmp are missing from the graphics folder, the game will crash when it tries to load them.
August 3rd 2010, 06:45 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Fireball (scroll) script:
//sack of grain

void main( void )
{
sp_touch_damage(&current_sprite, -1);
}

void touch(void)
{
//dink touched this sprite
Playsound(10,22050,0,0,0);
sp_brain_parm(&current_sprite, 10);
sp_brain(&current_sprite, 12);
sp_touch_damage(&current_sprite, 0);
sp_timing(&current_sprite, 0);
add_magic("item-fb",437, 1);
say("I got the Fireball spell", 1);
  //kill this item so it doesn't show up again for this player
  int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
  editor_type(&hold, 1); 

}


The Fireball magic script is copied from the original game since I can't even open .d files.

(ITEM-FB.d)
August 3rd 2010, 08:33 PM
peasantfr.gif
I think the problem is with the fact that it is a touchprocedure which happens over and over again if dink keeps touching the object. In order to let the touch procedure only run once start the procedure with setting the touchdamage to 0. Hope this will solve the problem.
August 3rd 2010, 09:03 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
No, the acquire works fine. When I equip it, that's when the game dies.
August 3rd 2010, 09:08 PM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Wow. Now opening the inventory is killing the game!

Alright, clearly I'm not cut out for adding graphics successfully without screwing up the game. Email me if you wanna beta test what I have so far and give me the exact glitch details so I can fix them. I have no idea what is going on!

EDIT: NAO! XD
August 3rd 2010, 11:43 PM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
instead of using the sack of grain script - why not open your development folder (under \dink smallwood and use the actual fireball script instead... its a .c file too! think its called 'get_fb.c' or something... go looksee it worked in the original game - it should work in yours as well.

If you continue to use the grain script, as Anathavia says you are causing Dink pain when you use it ( Poor dink - he is in enough pain wearing those tight wee green undies don't you think
August 4th 2010, 12:00 AM
anon.gif
Absolution
Peasant They/Them
The Dark Lord of the DN. 
Nope, that's not my problem. In fact, my fireball was working perfectly until i installed IPD's armour demonstration. What do you say to THAT, IPD?!
August 4th 2010, 12:17 AM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Beat him I recon I hear dwarfs bruise like a little peach I want front row tickets!!
August 4th 2010, 01:52 AM
wizardg.gif
schnapper
Peasant He/Him Heard Island And Mcdonald Islands
Let us save our effort and just lie down and die. 
*Summons Army of Dwarven defenders*

"A line of dwarven defenders is a far better defense than a 10-foot-thick wall of stone, and much more dangerous." - NWN 1