I'm trying to create a building that is interactive, similar to the AI characters in the random maps.
I've created a seperate .s2s file with the information needed, but I can't get the script in objects_buildings.inf to properly refer to the external script.
I did some study on similar scripts, and it appears like this script should work;
troublesome script has written
on:use
dialogue "blacksmith", "sys/scripts/blacksmith.s2s","blacksmith";
dialogue "blacksmith", "sys/scripts/blacksmith.s2s","blacksmith";
But, every time I try to use the Blacksmith building though, I get this error;
The external script I'm referring to is quite simple at the moment.
blacksmith.s2s has written
//~blacksmith
page=start
title=Blacksmith
text=start
Ah, a blacksmithy. Now I can make metal tools!
text=end
button=action:close,No, thanks!
page=start
title=Blacksmith
text=start
Ah, a blacksmithy. Now I can make metal tools!
text=end
button=action:close,No, thanks!
So, I very much doubt that the error is caused by the external script.
Does anyone know what's going sour in this script?