The Dink Network

Reply to Re: 2 more development qestions.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 7th 2011, 09:37 AM
knights.gif
merder
Peasant He/Him Netherlands
The Voice in the back of your head! 
ok final got it to work sorta and now whenever i hit it with the spell obtained the game crashes(got windows 7)

//script of the buildings and all can be wrecked
void main (void)
{
sp_brain(&current_sprite,10);
//just so to make the next lines make sense to the engine and since speed is not edited essentially making it standstill targets
sp_hitpoints(&current_sprite,100);
sp_defense(&current_sprite,50);
}

void hit (void)
{
int &wrs = compare_magic("mgw");
if (&wrs == 1)
{
say("it works",1);
hurt(&current_sprite , 100);
}else
{
say("ouch! there has to be a better way to wreck a building",1);
}
}

void die (void)
{

&wrecks += 1
say("and that's home no &wrecks ",1);
int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 1); 
}



dunno why though I've seen mods with stationary bosses(CC2 to be more exact) and i've seen dragons in many dmod's attacking themselves with the hurt command.