My script won't work

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: My script won't work
Apprentice
Member # 6037
Profile #0
I'm trying to write a character-editing script that looks like it belongs in the game, you know, sorta inconspicuous, for people like me whose parents don't want them to do that. But it won't work in any way, shape, or form. Any help, people? Here it is

[ Monday, June 27, 2005 22:12: Message edited by: Merlyn ]

--------------------
I am the Shaper that all the Shapers laugh at and call weak... I'll show them all... I [i]am[/i] weak!!!!!
Posts: 13 | Registered: Monday, June 27 2005 07:00
Shaper
Member # 5437
Profile #1
The first problem I see is you are missing a semicolon after "variables"

--------------------
Nena
Posts: 2032 | Registered: Wednesday, January 26 2005 08:00
Apprentice
Member # 6037
Profile #2
>.< I hosted the wrong file. That was someone elses perfectly working GF1 script. Fixed now.

[ Monday, June 27, 2005 22:22: Message edited by: Merlyn ]

--------------------
I am the Shaper that all the Shapers laugh at and call weak... I'll show them all... I [i]am[/i] weak!!!!!
Posts: 13 | Registered: Monday, June 27 2005 07:00
Warrior
Member # 5523
Profile #3
Allwase remember semi colins and making sure your editor is in a different state than everything else.

--------------------
“Medicine, Law, Business, Engineering - These are noble pursuits and necessary to sustain life. But Poetry, Beauty, Romance, Love-These are what we alive stay for.”
Posts: 150 | Registered: Sunday, February 20 2005 08:00
Shaper
Member # 5437
Profile #4
Within Talknode 24 you are missing a semicolon after change_coins(30000)

That doesn't fix the script, but read through it again.

--------------------
Nena
Posts: 2032 | Registered: Wednesday, January 26 2005 08:00
Apprentice
Member # 6037
Profile #5
I've reread it again, I can't find the problem...

--------------------
I am the Shaper that all the Shapers laugh at and call weak... I'll show them all... I [i]am[/i] weak!!!!!
Posts: 13 | Registered: Monday, June 27 2005 07:00
Warrior
Member # 5523
Profile #6
Try changing
quote:
begintalknode 22;
state = 5;
personality = 0;
nextstate = -1;
condition = 1;
question = "No way! Do I look like a cheater?";
text1 = "You turn from the obelisk and walk away, knowing that you could have surpassed even the Shaper Council... But at least your integrity is intact.";
action = END_TALK;

begintalknode 23;
state = 5;
personality = 0;
nextstate = 31;
condition = 1;
question = "Duh! What do you think I am, stupid?";
text1 = "One side of the obelisk slides open, revealing a small vat of glowing yellow liquid.";
text2 = "What do you wish to do?"

begintalknode 24;
state = 31;
personality = 0;
nextstate = -1;
condition = 1;
question = "Put your hand in it.";
text1 = "As your hand makes contact with the fluid, it crawls up your arm, enveloping first you, then spreading along the ground to all your creations... None of you can move... You feel a growing warmth, and a sense of well-being...";
text2 = "With a loud 'slurp', the liquid all flows back into its vat, except some which stays in your money pouch, leaving you and your creatures fully healed and your wallet full of pure gold.";
code = heal_char(0,2000);
restore_energy_char(0,3000);
heal_char(1,2000);
restore_energy_char(1,3000);
heal_char(2,2000);
restore_energy_char(2,3000);
heal_char(3,2000);
restore_energy_char(3,3000);
heal_char(4,2000);
restore_energy_char(4,3000);
heal_char(5,2000);
restore_energy_char(5,3000);
heal_char(6,2000);
restore_energy_char(6,3000);
heal_char(7,2000);
restore_energy_char(7,3000);
change_coins(30000)
break;

begintalknode 25;
state = 31;
personality = 0;
nextstate = -1;
condition = 1;
question = "Drink it.";
text1 = "As you reach for it, the vat reshapes itself into a gem-studded goblet. You pick it up, drink, and fall to your knees as your body becomes a teeming mass of pain. Your last thought before passing out is, "I probably shouldn't have done that..." After a while, you waken and stand. You feel ready to take on the world.";

to
quote:
begintalknode 92;
state = 5;
personality = 0;
nextstate = -1;
condition = 1;
question = "No way! Do I look like a cheater?";
text1 = "You turn from the obelisk and walk away, knowing that you could have surpassed even the Shaper Council... But at least your integrity is intact.";
action = END_TALK;

begintalknode 93;
state = 5;
personality = 0;
nextstate = 31;
condition = 1;
question = "Duh! What do you think I am, stupid?";
text1 = "One side of the obelisk slides open, revealing a small vat of glowing yellow liquid.";
text2 = "What do you wish to do?"

begintalknode 94;
state = 31;
personality = 0;
nextstate = -1;
condition = 1;
question = "Put your hand in it.";
text1 = "As your hand makes contact with the fluid, it crawls up your arm, enveloping first you, then spreading along the ground to all your creations... None of you can move... You feel a growing warmth, and a sense of well-being...";
text2 = "With a loud 'slurp', the liquid all flows back into its vat, except some which stays in your money pouch, leaving you and your creatures fully healed and your wallet full of pure gold.";
code = heal_char(0,2000);
restore_energy_char(0,3000);
heal_char(1,2000);
restore_energy_char(1,3000);
heal_char(2,2000);
restore_energy_char(2,3000);
heal_char(3,2000);
restore_energy_char(3,3000);
heal_char(4,2000);
restore_energy_char(4,3000);
heal_char(5,2000);
restore_energy_char(5,3000);
heal_char(6,2000);
restore_energy_char(6,3000);
heal_char(7,2000);
restore_energy_char(7,3000);
change_coins(30000);
break;

begintalknode 95;
state = 31;
personality = 0;
nextstate = -1;
condition = 1;
question = "Drink it.";
text1 = "As you reach for it, the vat reshapes itself into a gem-studded goblet. You pick it up, drink, and fall to your knees as your body becomes a teeming mass of pain. Your last thought before passing out is, "I probably shouldn't have done that..." After a while, you waken and stand. You feel ready to take on the world.";



[ Wednesday, June 29, 2005 06:58: Message edited by: Harlequin ]

--------------------
“Medicine, Law, Business, Engineering - These are noble pursuits and necessary to sustain life. But Poetry, Beauty, Romance, Love-These are what we alive stay for.”
Posts: 150 | Registered: Sunday, February 20 2005 08:00
Shaper
Member # 5437
Profile #7
The node just above the one he originally numbered 22 is number 92, so the script you posted makes two nodes numbered 92. Even if I change it so the numbers don't conflict the script doesn't work. I don't think it's a problem with the node numbers or states.

[ Wednesday, June 29, 2005 07:12: Message edited by: Dolphin. ]

--------------------
Nena
Posts: 2032 | Registered: Wednesday, January 26 2005 08:00
Warrior
Member # 5523
Profile #8
Oh, my god, your right, sorry for the confusion. It should read:
quote:
begintalknode 93;
state = 5;
personality = 0;
nextstate = -1;
condition = 1;
question = "No way! Do I look like a cheater?";
text1 = "You turn from the obelisk and walk away, knowing that you could have surpassed even the Shaper Council... But at least your integrity is intact.";
action = END_TALK;

begintalknode 94;
state = 5;
personality = 0;
nextstate = 31;
condition = 1;
question = "Duh! What do you think I am, stupid?";
text1 = "One side of the obelisk slides open, revealing a small vat of glowing yellow liquid.";
text2 = "What do you wish to do?";
begintalknode 95;
state = 31;
personality = 0;
nextstate = -1;
condition = 1;
question = "Put your hand in it.";
text1 = "As your hand makes contact with the fluid, it crawls up your arm, enveloping first you, then spreading along the ground to all your creations... None of you can move... You feel a growing warmth, and a sense of well-being...";
text2 = "With a loud 'slurp', the liquid all flows back into its vat, except some which stays in your money pouch, leaving you and your creatures fully healed and your wallet full of pure gold.";
code = heal_char(0,2000);
restore_energy_char(0,3000);
heal_char(1,2000);
restore_energy_char(1,3000);
heal_char(2,2000);
restore_energy_char(2,3000);
heal_char(3,2000);
restore_energy_char(3,3000);
heal_char(4,2000);
restore_energy_char(4,3000);
heal_char(5,2000);
restore_energy_char(5,3000);
heal_char(6,2000);
restore_energy_char(6,3000);
heal_char(7,2000);
restore_energy_char(7,3000);
change_coins(30000);
break;
begintalknode 96;
state = 31;
personality = 0;
nextstate = -1;
condition = 1;
question = "Drink it.";
text1 = "As you reach for it, the vat reshapes itself into a gem-studded goblet. You pick it up, drink, and fall to your knees as your body becomes a teeming mass of pain. Your last thought before passing out is, "I probably shouldn't have done that..." After a while, you waken and stand. You feel ready to take on the world.";


[ Wednesday, June 29, 2005 08:08: Message edited by: Harlequin ]

--------------------
“Medicine, Law, Business, Engineering - These are noble pursuits and necessary to sustain life. But Poetry, Beauty, Romance, Love-These are what we alive stay for.”
Posts: 150 | Registered: Sunday, February 20 2005 08:00
Apprentice
Member # 6037
Profile #9
Except, the numbers I used for the nodes weren't in use anyways, there is no node 23 or 24 in the original script

[ Wednesday, June 29, 2005 09:54: Message edited by: Merlyn ]

--------------------
I am the Shaper that all the Shapers laugh at and call weak... I'll show them all... I [i]am[/i] weak!!!!!
Posts: 13 | Registered: Monday, June 27 2005 07:00