A man wears armor
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.
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.
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.
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
}
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
}