The Dink Network

Reply to Re: Odd problems...

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:
 
 
August 2nd 2003, 07:22 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
&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.