The Yeoman Cheesemonger Posted April 29, 2005 Share Posted April 29, 2005 I have a scenario, yay! But when I get into it I recieve an error saying that line 19 does not end properly. Here is line 19: if (get_skill_total(42) > 1){ Does it end properly? Can I Fix It? Link to comment Share on other sites More sharing options...
Kelandon Posted April 29, 2005 Share Posted April 29, 2005 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 More sharing options...
The Yeoman Cheesemonger Posted April 29, 2005 Author Share Posted April 29, 2005 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 More sharing options...
Lilith Posted April 29, 2005 Share Posted April 29, 2005 I think I've found your problem: there's no break; command in the INIT_STATE. There should be. Link to comment Share on other sites More sharing options...
The Yeoman Cheesemonger Posted April 29, 2005 Author Share Posted April 29, 2005 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 More sharing options...
Kelandon Posted April 30, 2005 Share Posted April 30, 2005 Yes. If it still gives you grief, try uncapitalizing "begintownscript" and "body." Also, um, dear god, you're teaching 50 levels of healing in one shot. That's a bit much. Link to comment Share on other sites More sharing options...
The Yeoman Cheesemonger Posted April 30, 2005 Author Share Posted April 30, 2005 You think it's too much? I'll Change it. Link to comment Share on other sites More sharing options...
Lilith Posted April 30, 2005 Share Posted April 30, 2005 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 More sharing options...
The Yeoman Cheesemonger Posted May 1, 2005 Author Share Posted May 1, 2005 How Do I Give it to all? Do I Do this Four times in the One State? Or do I change the Give_Spell(o, value? If so, what to? Link to comment Share on other sites More sharing options...
Drakefyre Posted May 1, 2005 Share Posted May 1, 2005 You could add a similar call for characters 1, 2, and 3. I don't think this call accepts a group, only individual characters. Link to comment Share on other sites More sharing options...
The Arpeggiator Posted May 1, 2005 Share Posted May 1, 2005 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 More sharing options...
The Yeoman Cheesemonger Posted May 6, 2005 Author Share Posted May 6, 2005 I am Thinking of making a library. Spells for level 1 Partys ! Does this infringe upon Kelandons HLPM? Link to comment Share on other sites More sharing options...
Kelandon Posted May 6, 2005 Share Posted May 6, 2005 What on Earth are you talking about? Link to comment Share on other sites More sharing options...
Archmagus Micael Posted May 7, 2005 Share Posted May 7, 2005 Quote: Originally written by The Yeoman Cheesemonger:I am Thinking of making a library. Spells for level 1 Partys ! 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 Link to comment Share on other sites More sharing options...
The Yeoman Cheesemonger Posted May 9, 2005 Author Share Posted May 9, 2005 And Alchemy, 250 of All: Scrolls, Potions, Wands, Ingredients. Link to comment Share on other sites More sharing options...
Recommended Posts