Reply to Re: Odd problems...
If you don't have an account, just leave the password field blank.
&sp-touch = sp_touch_damage(&sprite, -1);
It always returns -1. All other stats turn up right, but touch damage is -1. Can anyone think of a good reason? I'll throw up the script for you guys to evaluate, too.
My guess is you simply can't retrieve the touch damage from the sprite. sp_touch_damage(&sprite,-1); is a special instance when the sprite can be 'touched' by Dink, and run the touch function. This is a good example of why Seth should have overloaded the DinkC functions, so you could just check the touch damage by sp_touch_damage(&sprite);
There is a nice little run around though. You could set sp_gold(); to the same value as sp_touch_damage(); in your enemy scripts. sp_gold(); doesn't do anything, but it does allow you to retrieve the value with -1.
It always returns -1. All other stats turn up right, but touch damage is -1. Can anyone think of a good reason? I'll throw up the script for you guys to evaluate, too.
My guess is you simply can't retrieve the touch damage from the sprite. sp_touch_damage(&sprite,-1); is a special instance when the sprite can be 'touched' by Dink, and run the touch function. This is a good example of why Seth should have overloaded the DinkC functions, so you could just check the touch damage by sp_touch_damage(&sprite);
There is a nice little run around though. You could set sp_gold(); to the same value as sp_touch_damage(); in your enemy scripts. sp_gold(); doesn't do anything, but it does allow you to retrieve the value with -1.