The Dink Network

Reply to Re: Help needed (and patience too)

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:
 
 
May 5th 2007, 05:19 PM
knightgl.gif
CastMan
Peasant He/Him Brazil
Some day I'll finish my mod... Some day... 
Thanks scratcher and metatarasal!!
He died! The problem was the "sp_nohit(&current_sprite,0);", the "wait()" wasn´t at the first script that i´ve made, I just though that the "wait()" would solve the problem (because I saw a script with it).

One more thing, (that´s why I´ve said patience) and how about this one...
It´s the "Rage Sword", that earns more power when you defeat an enemy, when you kill the enemy you earn 2 &rage, everithing is OK except that if the enemy is killed with another sword (ClawSword, for example), the Rage Sword becomes stronger (what I´ve wanted), but if the enemy is killed with the Rage Sword, it doesn´t gets stronger!! And when you disarm it, Dink loses his strenght.

Example: With ClawSword I had 25 ATK points, I´ve killed a monster with the Rage Sword, it supposed to win 1 ATK point, but it doesn´t, and when I disarm the Rage Sword I´ve lost this Extra point, with my ClawSword i´m now 24 ATK points, I think that the game doesn´t update my extra point (so I don´t earn the ATK point), but when I disarm, the game counts that point (so I lost 1 ATK point).

Sword Arm/Disarm Void

void arm(void)
{
//sword range
sp_distance(1, 50);
sp_range(1, 40);
//sword strength added
&strength += &rage; (&rage variable = 35)

void disarm(void)
{
sp_attack_hit_sound(1, 0);

&strength -= &rage; (the disarm should be -35, but it counts the extra Rage point, so -36)
sp_distance(1, 0);
sp_range(1, 0);
kill_this_task();
}

I´ve tried use an "update stats" "draw_stats", but it keeps the same problem...

Help me please!!
Your names already are at the credits of my D-Mod, thanks!!