stupid crappy crappy thing thats crap.
ive got a script for some half arsed defense spell, but when you use it, your defense goes up to 200 permanently! anyway, here goes:
void use(void)
{
playsound(22,22050,0,0,0);
say("`0You feel invicable!", 1);
&defense += 30;
wait(10000);
&defense -= 30;
say("`0**defense has worn off!**", 1);
&magic_level = 0;
draw_status();
}
void disarm(void)
{
&magic_cost = 0;
kill_this_task();
}
void arm(void)
{
Debug("Preloading heal");
int &basehit;
int &mholdx;
int &mholdy;
int &junk;
int &mshadow;
int &mydir;
&magic_cost = 200;
}
void pickup(void)
{
Debug("Player now owns this item.");
kill_this_task();
}
void drop(void)
{
Debug("Item dropped.");
kill_this_task();
}
cheers.
void use(void)
{
playsound(22,22050,0,0,0);
say("`0You feel invicable!", 1);
&defense += 30;
wait(10000);
&defense -= 30;
say("`0**defense has worn off!**", 1);
&magic_level = 0;
draw_status();
}
void disarm(void)
{
&magic_cost = 0;
kill_this_task();
}
void arm(void)
{
Debug("Preloading heal");
int &basehit;
int &mholdx;
int &mholdy;
int &junk;
int &mshadow;
int &mydir;
&magic_cost = 200;
}
void pickup(void)
{
Debug("Player now owns this item.");
kill_this_task();
}
void drop(void)
{
Debug("Item dropped.");
kill_this_task();
}
cheers.
I dunno, maybe putting &magic_level = 0; and draw_status(); directly after the { helps.
Scrach that. &defense is right.
Weird that I can't edit that.
Wierd that I kan't spell.
Weird that I can't edit that.
Wierd that I kan't spell.
September 17th 2004, 09:16 PM
MiloBones
I'll put money that magicman is right.
Think about it: you want the mana-thing to reset instantly-- before the wait.
Think about it: you want the mana-thing to reset instantly-- before the wait.
Hurrah, thanks magicman. it actualy looks quite funky with its neat shield icon thingy for a crappy crap thing thats crap. just one more question, how do you make th funky blue stars apear above his head? im also making a fury spell so i may also need to know how the red stars apear above your head. cheers.
September 18th 2004, 08:23 AM
MiloBones
Blue stars can be done with a spawn("mag_star");
A few notes on the create_sprite command. It's like this:
&junk = create_sprite( x location, y location, brain, sequence, frame);
Five parameters. And it returns the number of the new sprite, so you could do, say, sp_dir(&junk, 2); or whatever, if you set &junk equal to the create_sprite command, like above.
And a note on brain 12: it makes things shrink or grow to sp_brain_parm, then die. An example:
sp_brain_parm(¤t_sprite, 110);
sp_brain(¤t_sprite, 12);
The sprite will now grow to size 110, then die.
That should help, some.
A few notes on the create_sprite command. It's like this:
&junk = create_sprite( x location, y location, brain, sequence, frame);
Five parameters. And it returns the number of the new sprite, so you could do, say, sp_dir(&junk, 2); or whatever, if you set &junk equal to the create_sprite command, like above.
And a note on brain 12: it makes things shrink or grow to sp_brain_parm, then die. An example:
sp_brain_parm(¤t_sprite, 110);
sp_brain(¤t_sprite, 12);
The sprite will now grow to size 110, then die.
That should help, some.