End of Line Error
Author | Topic: End of Line Error |
---|---|
Warrior
Member # 5212
|
written Friday, April 29 2005 15:27
Profile
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? [ Friday, April 29, 2005 15:30: Message edited by: The Yeoman Cheesemonger ] -------------------- The whole purpose of your life Might just be to serve as a warning to others. Build a man a Fire and he will be warm for a day, set a man on Fire and he will be warm for the rest of his life. [b]Meow! Subvert the dominant Paradigm! Meow! Meow![b] Wizard's Cat in A2 Posts: 94 | Registered: Thursday, November 18 2004 08:00 |
Off With Their Heads
Member # 4045
|
written Friday, April 29 2005 15:30
Profile
Homepage
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. [ Friday, April 29, 2005 15:31: Message edited by: Kelandon ] -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Warrior
Member # 5212
|
written Friday, April 29 2005 15:32
Profile
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; [ Friday, April 29, 2005 15:38: Message edited by: The Yeoman Cheesemonger ] -------------------- The whole purpose of your life Might just be to serve as a warning to others. Build a man a Fire and he will be warm for a day, set a man on Fire and he will be warm for the rest of his life. [b]Meow! Subvert the dominant Paradigm! Meow! Meow![b] Wizard's Cat in A2 Posts: 94 | Registered: Thursday, November 18 2004 08:00 |
...b10010b...
Member # 869
|
written Friday, April 29 2005 16:39
Profile
Homepage
I think I've found your problem: there's no break; command in the INIT_STATE. There should be. [ Friday, April 29, 2005 16:40: Message edited by: Thuryl ] -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Warrior
Member # 5212
|
written Friday, April 29 2005 16:52
Profile
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; -------------------- The whole purpose of your life Might just be to serve as a warning to others. Build a man a Fire and he will be warm for a day, set a man on Fire and he will be warm for the rest of his life. [b]Meow! Subvert the dominant Paradigm! Meow! Meow![b] Wizard's Cat in A2 Posts: 94 | Registered: Thursday, November 18 2004 08:00 |
Off With Their Heads
Member # 4045
|
written Friday, April 29 2005 17:31
Profile
Homepage
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. [ Friday, April 29, 2005 17:32: Message edited by: Kelandon ] -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Warrior
Member # 5212
|
written Friday, April 29 2005 17:40
Profile
You think it's too much? I'll Change it. :( :( :( -------------------- The whole purpose of your life Might just be to serve as a warning to others. Build a man a Fire and he will be warm for a day, set a man on Fire and he will be warm for the rest of his life. [b]Meow! Subvert the dominant Paradigm! Meow! Meow![b] Wizard's Cat in A2 Posts: 94 | Registered: Thursday, November 18 2004 08:00 |
...b10010b...
Member # 869
|
written Friday, April 29 2005 19:28
Profile
Homepage
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. [ Friday, April 29, 2005 19:29: Message edited by: Thuryl ] -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Warrior
Member # 5212
|
written Sunday, May 1 2005 11:40
Profile
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? -------------------- The whole purpose of your life Might just be to serve as a warning to others. Build a man a Fire and he will be warm for a day, set a man on Fire and he will be warm for the rest of his life. [b]Meow! Subvert the dominant Paradigm! Meow! Meow![b] Wizard's Cat in A2 Posts: 94 | Registered: Thursday, November 18 2004 08:00 |
Triad Mage
Member # 7
|
written Sunday, May 1 2005 11:53
Profile
Homepage
You could add a similar call for characters 1, 2, and 3. I don't think this call accepts a group, only individual characters. -------------------- "At times discretion should be thrown aside, and with the foolish we should play the fool." - Menander ==== Drakefyre's Demesne - Happy Happy Joy Joy Encyclopedia Ermariana - Trapped in the Closet ==== You can take my Mac when you pry my cold, dead fingers off the mouse! Posts: 9436 | Registered: Wednesday, September 19 2001 07:00 |
Apprentice
Member # 5757
|
written Sunday, May 1 2005 15:40
Profile
Homepage
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 -------------------- You have been arpeggiated! Posts: 23 | Registered: Tuesday, April 26 2005 07:00 |
Warrior
Member # 5212
|
written Thursday, May 5 2005 22:56
Profile
I am Thinking of making a library. Spells for level 1 Partys ;) :) :P ! Does this infringe upon Kelandons HLPM? -------------------- The whole purpose of your life Might just be to serve as a warning to others. Build a man a Fire and he will be warm for a day, set a man on Fire and he will be warm for the rest of his life. [b]Meow! Subvert the dominant Paradigm! Meow! Meow![b] Wizard's Cat in A2 Posts: 94 | Registered: Thursday, November 18 2004 08:00 |
Off With Their Heads
Member # 4045
|
written Friday, May 6 2005 05:22
Profile
Homepage
What on Earth are you talking about? -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Agent
Member # 4506
|
written Saturday, May 7 2005 11:08
Profile
Homepage
quote: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 :D -------------------- "You dare Trifle with Avernum?" ~ Erika the Archmage -------------------- My Scenarios: Undead Valley : A small Undead problem, what could possibly go wrong? -------------------- Richard Black - PROOF of his existance (the Infernal one's website). -------------------- MY FORUM! Randomosity at it's highest! :) Posts: 1370 | Registered: Thursday, June 10 2004 07:00 |
Warrior
Member # 5212
|
written Monday, May 9 2005 11:03
Profile
And Alchemy, 250 of All: Scrolls, Potions, Wands, Ingredients. -------------------- The whole purpose of your life Might just be to serve as a warning to others. Build a man a Fire and he will be warm for a day, set a man on Fire and he will be warm for the rest of his life. [b]Meow! Subvert the dominant Paradigm! Meow! Meow![b] Wizard's Cat in A2 Posts: 94 | Registered: Thursday, November 18 2004 08:00 |