The Dink Network

2 questions need help with them both b4 tomorrow!!!

July 19th 2008, 10:27 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
Hey guys can any1 tell me how i can
1) convert dink from himself to a knight while having his punching sequence become the knight hitting with his axe? All i managed to do was get dink look like a knight but when i use the fist to punch i turn back into dink punching and then back into a knight.
2) I want to create a spell that turns 'smart people' (brain 16 sprites) into rock mosters. Now i created the icon that fits in the magic inventory but it is not recognised by the engine as a spell and it certainly does not work!!

I really need help soon bec. the deadline for the rise to power contest is tonight!! Thanks really.
July 19th 2008, 12:33 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
1)Follow this procedure:

Assuming Dink only has a fist:

You need to copy the script item-fst.c into the STORY folder of your DMOD. Now open it, you see this line:

&basehit += 100;

The value &basehit is basically the basehit of dink. (Works just like a basewalk but then for attacking sequences) Now edit this value to the basehit of the sprite you want (normally 730 for a blue knight).

You probably want something like this in your DMOD if you want to switch between both forms:

if (dink is knight)
{
&basehit += 730;
}
if (dink is dink)
{
&basehit += 100;
}

Works similar for other weapons.

Extra note: You probably want to use the command push_active(0); to make sure the knight can't push anything (Otherwise he will look like Dink when he does).

2) Hmm... what's the script for the spell? And what is not working? Does it appear in your inventory? Does it cost magic to cast the spell?
July 19th 2008, 12:50 PM
maiden.gif
nawal
Peasant She/Her Egypt
 
Thanks for ur help with the knight i'll try that. i managed to get the spell working but my knight looks like dink when he's casting the spell and then turns back into a knight! how can i make the knight cast a spell while still looking like a knight?
July 20th 2008, 03:58 AM
custom_odd.gif
you can't without making new graphics, mate.. just use the same attack animation code he gave you in the magic spell, and he'll swing his ax for both.. or if you don't want him to swing his ax then use no animation, or the idle animation
August 5th 2008, 10:03 AM
pq_rabbit.gif
z3shep
Peasant They/Them
 
hey how did you get dink to look like a knight?
August 7th 2008, 05:56 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
just type the following script:
sp_base_walk(1, 740); //note i'm not sure of the 740. It's mainly the number of the sequence you want dink to look like, say a knight or a duck...etc.
also use:
sp_base_idle(1, 740); //the 1st argument means this is for Dink, the second is the new sequence you want to assign to an idle Dink.
sp_base_attack(1, 740);//same here.

note: these don't work for attacking, like my dink looked like a knight but he looked like dink while punching and when he used a spell. i'll try out what the guys told me in the thread above maybe it'll transform dink totally into a knight.
August 7th 2008, 10:50 AM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
For the attack, you have to have it so that whatever weapon he's using plays back the Knight's attack animation when used.
August 11th 2008, 07:40 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
and how can i do that?