The Dink Network

Why won't you die?!?!?

June 16th 2003, 09:43 PM
pillbug.gif
Help, everything but touch_damage and sp_brain won't work!! (I have made the bonca, in a script attatched to the screen)Please help!

VOID MAIN(VOID)
{
sp_hitpoints(&bonca, 1);
sp_defense(&bonca, 2);
sp_target(&bonca, 1);
sp_brain(&bonca, 6);
sp_exp(&bonca, 20);
sp_touch_damage(&bonca, 4);
sp_strength(&bonca, 2);

}

(I musta sounded pretty dern' shtupid sayin' thet es noet assashed to de shreen! Bet, est en one o dem' sp_scripts,)
June 17th 2003, 02:01 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
What would you like it to do? It's brain 6 which means looping sequence. You should give it brain 9 (diagonal-walking enemy) or 10 (not-diagonal-walking enemy).
Somehow sp_touch_damage willonly work with enemies and brain 0 sprites (for hurting vines or something)
June 17th 2003, 04:31 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Okay first of all brain 6 can't have a target assigned to it. Your brain 6 sprite won't loop either until you put sp_seq(&current_sprite, seq#) right after the brain is assigned.

I'm not sure if touch damage doesn't work for brain 6. I think it does though, but it will only hurt Dink not other enemies.

(I musta sounded pretty dern' shtupid sayin' thet es noet assashed to de shreen! Bet, est en one o dem' sp_scripts)

I failed to translate that

By the way, why do you want the bonca to be brain 6 anyway? If you want it to walk around you need to assign a base_walk value to it and give it brain 9.
Oh and without giving it a speed factor your sprite won't move anyway.
June 17th 2003, 09:09 AM
pillbug.gif
I meant, I already put a script saying base_walk and other stuff to create the actual sprite on the screen. This script is assigned to that local variable using sp_script(&yeah, "Blah");. That's what you get for trying to memorize the brains. And, one last thing, If I have a VOID MAIN(VOID) script, I can attatch it to any sprite because it'll run when the screen is loading no matter what, am I right?
June 17th 2003, 11:41 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Yes, Void Main SHOULD always run. However, I have been in certain situations where it doesn't run or maybe not right away. I have no explanation for this though.
June 17th 2003, 12:17 PM
pillbug.gif
Thank You!
June 17th 2003, 02:44 PM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
why not just add those lines after you've made the bonca in the script that is attached to the screen? And is &bonca a global variable?
June 17th 2003, 07:43 PM
pillbug.gif
No it's a local. Also, I realise my scripting flaws are fully visible
June 18th 2003, 03:43 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
That's irritating. You can fix it by putting wait(1); or fade_up(); (without ever being faded down of course) as the first line of the script.
I don't know why, but it works!
June 18th 2003, 05:07 AM
pq_frog.gif
Ric
Peasant They/Them Canada
 
make sure its hitpoints don't get set in both script and editor properties. Either will do, but not both.