Jump to content

Specobj not working!


Recommended Posts

The call in the script is run_town_script(), you want to replace that with run_scenario_script(). If you don't want to break compatibility with other specobj nodes, you could make another specobj script, or you could make another memory cell that switches between scenario and town scrtips.

Link to comment
Share on other sites

Quote:
Originally written by Keep:
The call in the script is run_town_script(), you want to replace that with run_scenario_script(). If you don't want to break compatibility with other specobj nodes, you could make another specobj script, or you could make another memory cell that switches between scenario and town scrtips.
OOps! I ment to say town script, I got mixed up. I does not call the state in the TOWN script. Sorry about that typo.
Link to comment
Share on other sites

Have you mucked with it at all? You may wish to replace this copy of specobj with another copy that you have somewhere else, one that you know that you haven't touched.

 

This is a copy of specobj that works:

Code:
 // specobj.txt - This very simple script waits until this object is searched. When it// is, calls a given special node in the current town's script.// Memory Cells - //   0 - Number of a state in the town script. This is the state that is called when the item is used.//   1,2 - Coordinates for a stuff done flag. If these are 0 and 0, ignored. Otherwise,//     is the given flag is non-zero, nothing happens when the object is used.beginterrainscript; variables;body;beginstate INIT_STATE;	break;beginstate START_STATE;break;beginstate SEARCH_STATE;	if ((get_memory_cell(1) > 0) || (get_memory_cell(2) > 0)) 		if (get_flag(get_memory_cell(1),get_memory_cell(2)) > 0) {			print_str_color("You can't do anything with this anymore.",2);			end();			}		run_town_script(get_memory_cell(0));break; 
Link to comment
Share on other sites

Well, you could always toss in my Search-Block instead, which IMHO you should do anyway....

 

I doubt the problem is within specobj itself. Re-check the memory cell, re-check your spelling of specobj, re-check the town state, make sure the town script is actually running at the time and not stopped by an error somewhere else. I don't know what else it could be, but those are the obvious things to look at.

 

Oh, and to make sure that state 20 isn't being called at all, stick a print_str on the front of it that says something distinctive. That's screwed me up a few times -- I had a one-time whose flag was mixed up with another one-time's flag, so it just never activated at all.

 

EDIT: And for the record, I have never heard of a "panal." I've heard of a "panel," though.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...