Jump to content

Please help me debug


Dahak

Recommended Posts

I have a script:

 

Code:
// bandersnatch.txt - Controls the invisibility of a bandersnatch creature.// Memory Cells - //   0 - Creature typebeginterrainscript; variables;	short i = 6;body;beginstate INIT_STATE;	set_script_mode(3);break;beginstate START_STATE;	i = 6;	while (i <= 199) {		print_str_color("Looping",2);		if ( creature_type(i) = get_memory_cell(0) ) {			print_str_color("Found BS",2);			if (get_health(i) < get_max_health(i)) {				print_str_color("Changing",2);				set_special_ability(i, 0);				print_str_color("Changed",2);			}		}		i = i + 1; 	}break;

 

The second line print_str_color("Found BS",2); is giving me the following message: "Unmatched left parenthesis in line 22."

 

I've tried to figure it, but I'm stuck.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...