The Dink Network

A man wears armor

June 2nd 2010, 06:41 AM
boncap.gif
Killersong96
Peasant He/Him Turkey
A horse! A horse! My banana for a horse! 
How can I make a blue knight sprite like an item? I mean the main character will get an armor and wears it when he like. or put it out.
June 2nd 2010, 07:57 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
Oh, NOW YOU'VE DONE IT! 
Check out the file Alternative Heroes. It contains stuff like that.

In order to do what you are saying, you would have to make it into an item script that when armed changes the graphics to a knight's and so forth.
June 2nd 2010, 08:25 AM
duckdie.gif
Get the item, place it so Dink can pick it up. Now attach a script to it that makes that when you touch it Dink gets the item. Now make a script for that item, like "item-armor" and put this into it:
Don't add stuff in square brackets!

void arm( void)
{
sp_base_walk (1, xx) [xx is basewalk of knight]
sp_base_attack (1, xx) [xx is attack sequence]
&defense = xx} [xx is defence increased by wearing armor]

So on

void_disarm( void)
{
sp_base_walk (1, xx) [xx is Dink's basewalk]
sp_base _attack (1, xx) [xx is Dink's attack]
&defense -= xx
}