Jump to content

End of Line Error


Recommended Posts

You're probably missing a semi-colon somewhere just above this.

 

I recommend to you Alint , which has more reliable line numbers than BoA. If you still can't figure it out, post the whole script up to line 25 and the error message verbatim.

 

EDIT: I am TEH SPAMER, too.

Link to comment
Share on other sites

I have Alint, but it has instructions for macs, and I have no mac.

EDIT: I downloaded the PC Version

EDIT2: (If This Helps)

t0library Error: State not ended properly in line 19.

Begintownscript;

 

variables;

short tome1;

short choice;

 

Body;

beginstate INIT_STATE;

//Priest Spells

beginstate 10;

reset_dialog();

add_dialog_str(0,"There is a large, spell tome here. It is Labelled: Healing. You could read it if you like.",0);

add_dialog_choice(0,"Leave the book alone.");

add_dialog_choice(1,"Read it.");

tome1 = run_dialog(1);

if(tome1 == 1)

end();

if (get_skill_total(42) > 1){

message_dialog("This book is a quick and efficient way of teaching the spell: Healing.","");

if (char_ok(0))

change_spell_level(0,1,0,50);

}

else{

message_dialog("This book is a quick and efficient way of teaching the spell.","Unfortunately, you can't understand the rituals described in the book. Perhaps more Rune Reading skill would help.");

}

break;

Link to comment
Share on other sites

So, This then?

Begintownscript;

 

variables;

short tome1;

short choice;

 

Body;

beginstate INIT_STATE;

break;

//Priest Spells

beginstate 10;

reset_dialog();

add_dialog_str(0,"There is a large, spell tome here. It is Labelled: Healing. You could read it if you like.",0);

add_dialog_choice(0,"Leave the book alone.");

add_dialog_choice(1,"Read it.");

tome1 = run_dialog(1);

if(tome1 == 1)

end();

if (get_skill_total(42) > 1){

message_dialog("This book is a quick and efficient way of teaching the spell: Healing.","");

if (char_ok(0))

change_spell_level(0,1,0,50);

}

else{

message_dialog("This book is a quick and efficient way of teaching the spell.","Unfortunately, you can't understand the rituals described in the book. Perhaps more Rune Reading skill would help.");

}

break;

Link to comment
Share on other sites

50 more levels of healing would heal an extra 150-600 points of damage -- and all for a mere 2 spell points. So yes, it's just a little too much. Also, there seems to be no way to prevent people from getting extra doses of the bonus by reading the book more than once; be sure to fix that.

 

Furthermore, you're only teaching it to character 0. You should probably teach it to the entire party.

Link to comment
Share on other sites

btw, to change it so the party can only read it once, use an SDF.

 

just write it out so that the party only finds the tome if the SDF is not equal to 1. Then, at the end, set SDF (whatever) to 1.

 

here's the code:

 

if(SDF(1,6) == 0) // or whatever your SDF is

{

code...

set_sdf(1,6,1); // right before the end

break;

}

else // be sure to include this so that it is

// outside of all those nested ifs and whatnot

break; // ends the state and does nothing

Link to comment
Share on other sites

Quote:
Originally written by The Yeoman Cheesemonger:
I am Thinking of making a library. Spells for level 1 Partys winksmile:p ! Does this infringe upon Kelandons HLPM?
The spell section might be easier, but is that all you're making? Just a library with a bunch of UBER-powerful spells?

- Archmagi Micael]

still, I wouldn't mind the spells laugh
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...