The Dink Network

igloo15's Profile

goblins.gif
igloo15
Peasant He/Him
 
Creator of Rings of destiny

E-Mail igloo15@igloo15.com
Private Message
YIM hfxigloo15
AIM echo1586
MSN wowworld@hotmail.com

2005-08-13 11:18:44
goblins.gif
igloo15
Peasant He/Him
 
Here is a script that is attached to a gaurd sprite. The purpose of the gaurd is to follow you and when he touches you prompt a message from there he takes you to jail or he begin to hurt you with touch damage. At first I use the editor_seq trick to get the variable for the touch but that was not working so I changed it to a global variable and that did not work either. I relized after some testing checking with the variables that anything after the choice_end() doesn't execute. No matter what choice I pick he doesn't say anything. He does not prompt the choice again so I guess the variable is working. I have tried many things but nothing seems to work.

void main(void)
{

//int &ed = sp_editor_num(&current_sprite);
//int &gaurdtouch = editor_seq(&ed, -1);
//&gaurdtouch = 0;
//editor_seq(&ed, &gaurdtouch);
&crimex = 1;

sp_brain(&current_sprite, 9);
sp_speed(&current_sprite, 1);
sp_frame_delay(&current_sprite, 50);
sp_timing(&current_sprite, 0);
sp_exp(&current_sprite, 1500);
sp_base_walk(&current_sprite, 290);
sp_defense(&current_sprite, 10);
sp_strength(&current_sprite, 40);
sp_hitpoints(&current_sprite, 300);
sp_base_death(&current_sprite, 295);
sp_touch_damage(&current_sprite, -1);
sp_target(&current_sprite, 1);
}

void touch(void)
{

if(&crimex == 1)
{

&crimex += 1;
//editor_seq(&ed, &gaurdtouch);

choice_start()
title_start();
You have been charged with a crime, time to go to jail
title_end();
"Ok I will go &crimex"
"You will never take me alive"
choice_end()

if(&result != 1)
{

say_stop("`5 OK then follow me to jail &result", &current_sprite);
}
if(&result == 2)
{

say("`5Fine you will DIE!!", &current_sprite);
wait(100);
sp_touch_damage(&current_sprite, 50);
}

}

}

igloo15 has released 1 file

TitleCategoryAvgUpdated
Rings of DestinyD-Mod, DemoGood 7.0March 12th, 2001

igloo15 has written 1 review

TitleFileTypeScoreDate
I Don't Know if I Am the Only Person but the This Program Seems Extremely Buggy To Me Even... WinDinkEdit PlusNormalGood 7.5March 1st, 2006