Grail's Workshop

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: Grail's Workshop
Warrior
Member # 7362
Profile Homepage #0
Okay so I've started work on a small scenario that will contain items I make or others make (in that case send me creature info for yourself and item codes), also contains Machrone ana a friendly white demon.

But I have some problems with this, Machrone and my demon refuse to talk. The demon is a custom creature, while Machrone is a soldier or guard (not sure which). I have working scripts for them but they will not run so any help would be greatly recieved.

beginscendatascript;

// Grail
// Grail can be edited or used
// leave this header alone.
// - Grail
// grail-shadowblade@hotmail.co.uk

begindefinecreature 107;
clear;
cr_name = "Grail Shadowblade";
cr_level = 75;
cr_hp_bonus = 100;
cr_default_attitude = 4;
cr_species = 12;
cr_ap_bonus = 3;
cr_default_strategy = 10;
cr_default_courage = 75;
cr_which_sheet = 1574;
cr_icon_adjust = 34;
cr_what_stat_adjust 0 = 0;
cr_amount_stat_adjust 0 = 10;
cr_what_stat_adjust 1 = 1;
cr_amount_stat_adjust 1 = 4;
cr_what_stat_adjust 2 = 4;
cr_amount_stat_adjust 2 = 7;
cr_what_stat_adjust 3 = 9;
cr_amount_stat_adjust 3 = 8;
cr_what_stat_adjust 4 = 21;
cr_amount_stat_adjust 4 = 12;
cr_what_stat_adjust 5 = 39;
cr_amount_stat_adjust 5 = 8;
cr_start_item 0 = 278;
cr_start_item_chance 0 = 85;
cr_start_item 1 = 228;
cr_start_item_chance 1 = 100;
cr_start_item 2 = 148;
cr_start_item_chance 2 = 65;
cr_start_item 3 = 143;
cr_start_item_chance 3 = 80;
cr_start_item 4 = 62;
cr_start_item_chance 4 = 75;
cr_start_item 5 = 41;
cr_start_item_chance 5 = 50;
cr_immunities 0 = 30;
cr_immunities 1 = 10;
cr_immunities 2 = -35;
cr_immunities 3 = 5;
cr_immunities 4 = -50;
cr_immunities 5 = 15;
cr_small_or_large_template = 1;
cr_summon_class = 0;

begindefinecreature 108;
cr_name = "High Demon";
cr_default_script = "basicnpc";
cr_level = 48;
cr_default_attitude = 4;
cr_species = 12;
cr_default_strategy = 10;
cr_which_sheet = 1570;
cr_icon_adjust = 192;
cr_immunities 0 = 100;
cr_immunities 2 = 100;
I know this code works but it's here in case I need to edit something into it to get the demon to talk.

begintalkscript;

variables;

begintalknode 1;
state = -1;
personality = 1; nextstate = 1;
question = "Grail Shadowblade";
text1 = "On hearing your footsteps the
man looks up then smiles and puts down his
quill.";
text2 = "_Greetings adventurers, I'm
Grail Shadowblade and this is my workshop._ He
looks around. _Well almost._";
text3 = "_If you want I can identify your
stuff or buy the extra weight your carrying._ He
looks down at his at his scrolls then back at
you.";
text5 = "Grail is still here, glancing at
you as you near him.";
text6 = "_Yes?_";
action = INTRO;

begintalknode 2;
state = 1;
personality = 1; nextstate = -1;
question = "Identify my gear.";
text1 = "He smiles. _Why of course._";
action = ID 0;

begintalknode 3;
state = 1;
personality = 1; nextstate = -1;
question = "Buy my gear.";
text1 = "You finish your business.";
code =
begin_shop_mode("Grail","Considering he makes high quality items
your amazed at his offers.",66,0,1);
break;

// Great Demon

begintalknode 4;
state = -1;
personality = 2;
nextstate = 1;
question = "Great Demon";
text1 = "You blink as you look at a demon then
are amazed when it smiles at you.";
text2 = "Nevertheless you walk closer to it and
smile sheepishly, then realise it won't attack
you.";
text3 = "_Greetings human. Ask no questions about
me merely reach training from me._";
text4 = "You stare at it's claws and swallow
loudly and the demon starts laughing. _I won't
kill you._";
text5 = "_I offer mage and priest training to
your kind, so take advantage while you can._";

begintalknode 5;
state = 1;
personality = 2;
nextstate = -1;
question = "Can you teach me?";
text1 = "You finish your training.";
code =
begin_shop_mode("Demon Magic","The demon
has gathered a lot of spells but requires payment
before he'll teach you any.",1,5,-1);
break;
action = END_TALK;

// *** Machrone ***
// Because every scenario needs a Machrone.

begintalknode 6;
state = -1;
personality = 3;
nextstate = 2;
condition = 1;
question = "Machrone";
text1 = "Wandering around the workshop is
man who most adventurers have heard of. He
carries a sample notebook with him. _Ah! Yes!
Interesting._";
text2 = "He seems rather startled when
you approach him. _Who are you? Wait... You most
be here for the items._";

begintalknode 7;
state = 2;
personality = 3;
nextstate = 3;
condition = 1;
question = "Who are you?";
text1 = "_My name is Machrone. I am a
journalist, sent to report on unusual events and
strange locations._";

begintalknode 8;
state = 3;
personality = 3;
nextstate = 4;
condition = 1;
question = "What are you doing here?";
text1 = "_I happened to be on the wrong
end of a mage's dimension-warping spell. I got
transported into this workshop._";
text2 = "He gives you funny look. _But
how did YOU get here, I wonder?_";

begintalknode 9;
state = 4;
personality = 3;
nextstate = 2;
condition = 1;
question = "Uhh... I don't really know.";
text1 = "_What a strange place this is!
I will have to write a report on it when I get
back into the real universe._";

begintalknode 10;
state = 2;
personality = 3;
nextstate = 5;
condition = 1;
question = "What is this place?";
text1 = "_Well it's called Grail's
Workshop but other then that I don't know yet._
He avoids eye contact while he says that.";

begintalknode 11;
state = 5;
personality = 3;
nextstate = 2;
condition = 1;
question = "Really but it's your job?";
text1 = "He blushes _Well you see the
owner, Grail won't let me go outside to take a
look._";
text2 = "He sighes. _I would like to
explore more, seems amazing considering Grail
writes down the details of the weapons and puts
them in a machine then the item comes out the
other end._";
text3 = "He continues, _Anyway, based on
that I'm curious as to what other people here are
able to do._";

begintalknode 12;
state = 2;
personality = 3;
nextstate = 2;
condition = 1;
question = "Will you be leaving soon?";
text1 = "_Soon enough. I want to try and
get Grail to let me outside first._";
text2 = "He adds, _I'll leave soon enough
anyway._";
Complete conversations of characters from t1Workshopdlg.txt

// Shop 4 - Demon Magic
add_item_to_shop(4,2000,2);
add_item_to_shop(4,2001,2);
add_item_to_shop(4,2002,1);
add_item_to_shop(4,2003,1);
add_item_to_shop(4,2004,1);
add_item_to_shop(4,2005,1);
add_item_to_shop(4,2006,1);
add_item_to_shop(4,2007,1);
add_item_to_shop(4,3000,2);
add_item_to_shop(4,3001,2);
add_item_to_shop(4,3002,1);
add_item_to_shop(4,3003,1);
add_item_to_shop(4,3004,1);
add_item_to_shop(4,3005,1);
add_item_to_shop(4,3006,1);
add_item_to_shop(4,4002,1);
add_item_to_shop(4,4003,1);
This is the Demon's shop I am missing code for all spells trainable to 5.

So if you can help please let me know and if you want a copy of the scenario to look at the .bas then PM me or e-mail me.
Posts: 52 | Registered: Tuesday, August 8 2006 07:00
...b10010b...
Member # 869
Profile Homepage #1
Did you remember to set each creature's memory cell #3 to the appropriate talk node value?

[ Monday, August 14, 2006 03:29: Message edited by: Thuryl ]

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Warrior
Member # 7362
Profile Homepage #2
The which? Hmm I don' think so.

So High Demon memory cell 3 = 4
And Machrone memory cell 3 = 6

Thanks I knew it would be something simple.
Posts: 52 | Registered: Tuesday, August 8 2006 07:00
Loyal Underling
Member # 13
Profile #3
May I suggest taking a look at Imban's Artifact Hall?

--------------------
[i]Great Potato[/i]
"Unless by the force of eloquence they mean the force of truth; for if such is their meaning, I admit that I am eloquent." -- Socrates
Posts: 126 | Registered: Thursday, September 27 2001 07:00
Warrior
Member # 7362
Profile Homepage #4
Imban? You mean TM? If so then I have and nearly all the problems are sorted, just making more items and adding things.

EDIT: Wanted Beta testers, duties include testing items, opinions on items and custom creatures, willing to answer questions and happy to recieve multiple updates until the scenario includes 15 items made by me. Also offering to host custom items and characters/creatures within the scenario.

[ Monday, August 14, 2006 12:00: Message edited by: Grail Shadowblade ]
Posts: 52 | Registered: Tuesday, August 8 2006 07:00
Loyal Underling
Member # 13
Profile #5
This is what I meant (although a bit out of date):

http://imban.desperance.net/boa/Artifacts_By_Scenario.txt
http://imban.desperance.net/boa/Artifacts_By_Power.txt
http://imban.desperance.net/boa/Item_Guide.txt

--------------------
[i]Great Potato[/i]
"Unless by the force of eloquence they mean the force of truth; for if such is their meaning, I admit that I am eloquent." -- Socrates
Posts: 126 | Registered: Thursday, September 27 2001 07:00
Shake Before Using
Member # 75
Profile #6
Man, I really need to update those at some point. >_<
Posts: 3234 | Registered: Thursday, October 4 2001 07:00
Warrior
Member # 7362
Profile Homepage #7
Hmm okay I've skimmed over but not really what I'm working on but might use for reference to keep my items in check.
Posts: 52 | Registered: Tuesday, August 8 2006 07:00