The Dink Network

New File: Summon Spell

March 20th 2006, 07:40 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
rabidwolf9 has summoned a new Summon Spell. It summons (*gasp*) a stone giant to fight alongside Dink. It's included in an example D-Mod, so check it out!

March 23rd 2006, 08:14 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
In my spare time, I think I have located a minor bug that would involve targeting when the summon is attacked.I'm working on it right now and should be finished really soon. The problems? Bleh..simple ones that were somehow overlooked...When there are no enemies on the screen, the summon follows Dink, but when hit, the summon is still following, so it won't attack Dink the right way. That isn't so big, but there is another. When attacked by an enemy, our summon switches it's target to that enemy, but no experience gained from killing it... Easy to fix bugs that will be done right away. If there are any more, please inform me of them.

Update: I fixed it. It's at my house though, so I'll send it in later. In other news...school sucks.
March 24th 2006, 03:38 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
I found another bug with it. It seems when the summon's target is killed by something other than the summon, it doesn't get a new target..grr..anyone have any ideas on how to fix this?
March 24th 2006, 05:27 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
make a loop in which the summon looks for a target every second or so.
March 24th 2006, 07:07 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Okay, I have a way to do it now I think. My head is all foggy-like, so I'll deal with it later.
March 24th 2006, 10:55 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
I scream vile cursewords at Dink today. As usual, something is screwed up prohibiting me from completing my summon spell fix. It also seems that the summoned beast keeps the sprite number as it's target even when the target is dead. I have the lines I need to do the targeting part, but I can't make the circumstances work!?

//excerpt from "summon.c" inside the loop:

//&targ is innited earlier in the script
&targ = sp_target(&summon, -1);
//testing to see what sprite our summon has targeted
say("`7 &targ", 1);

//in case our summon's target was killed by someone else
//this doesn't seem to work, I need another way
if (sp_hitpoints(&targ, -1) < 1)
{
say("hey", &summon);
run_script_by_number(&summon, "main");
}