Code Check (Rip This To Shreds)

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: Code Check (Rip This To Shreds)
Warrior
Member # 1250
Profile #0
*sigh* Working on teaching a spell to the party via a super-elementary terrain script. However, the dialog it calls in the town script is giving me trouble. No problems rewarding the party with gold or an item (armor), but I'm struggling with teaching a spell. Limited help in the searchable board messages or the documentation. I know the problem is somewhere in this code:
w = 0;
while (w < 4) {
if (char_ok(w)) {
if (get_spell_level(w,0,15) < 3)) {
change_spell_level(w,0,15,1); }
}
w = w + 1;
}
I get an "Improper command" error when I test it.
Posts: 93 | Registered: Saturday, June 1 2002 07:00
...b10010b...
Member # 869
Profile Homepage #1
quote:
if (get_spell_level(w,0,15) < 3)) {
Spot the problem. (Hint: parentheses.)

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Warrior
Member # 1250
Profile #2
That's all it was. Of course, now I have to rebuild my characters' spellcasting skills after the error in Lord Putidus... I just looked at their stats, and I figured out where that scenario re-placed the skill levels... Thrown Missles and First Aid. :(
Posts: 93 | Registered: Saturday, June 1 2002 07:00
Off With Their Heads
Member # 4045
Profile Homepage #3
There is no error in LP. That's how it's supposed to work. Please distinguish between things that you don't like and things that the designer didn't intend.

--------------------
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 # 1250
Profile #4
It permanently moved my spellcasting skills to other skill areas, intentionally? I had no idea...
Posts: 93 | Registered: Saturday, June 1 2002 07:00
Off With Their Heads
Member # 4045
Profile Homepage #5
It has a sort of pre-fab party and takes place on Earth. It shouldn't take too much to put two and two together. :P

--------------------
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
Profile #6
I haven't Started LP yet, but before I do: Will I get my spellcasting back? The Main Power Of My group is in spellcasting and this would devastate me entirely if that happened. Then I would Find The Author and reach down his throat and turn him inside Out.
:mad: :mad: :mad:

[ Wednesday, April 06, 2005 15:55: 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
Profile Homepage #7
You don't get your spells back. But you're meant to use a brand new level-1 party anyway, so just don't take in your normal party.

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00