1 //this script fills life up, touch_damage must be set to -1. (run script mode)
2 
main()3 void main( )
4 {
5         sp_pseq(&current_sprite, 178);
6         sp_frame(&current_sprite, 4); //so the seq will start
7      //   sp_brain(&current_sprite, 6);
8         sp_touch_damage(&current_sprite, -1);
9         sp_nohit(&current_sprite, 1);
10 }
11 
touch(void)12 void touch( void )
13 {
14 int &mcrap = 1;
15 &gold += &mcrap;
16 say("I found &mcrap gold.",1);
17 sp_brain_parm(&current_sprite, 10);
18 sp_brain(&current_sprite, 12);
19 sp_touch_damage(&current_sprite, 0);
20 sp_timing(&current_sprite, 0);
21 
22   //kill this item so it doesn't show up again for this player
23   int &hold = sp_editor_num(&current_sprite);
24   if (&hold != 0)
25   editor_type(&hold, 1);
26 
27 }
28