Editing the Game files

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: Editing the Game files
Apprentice
Member # 7617
Profile #0
Which Avernum 4 file(s) do I edit to change how many skill points knowledge crystals & potions give?

Is there a guide somewhere to changing game parameters through changing script files somewhere?

[ Saturday, November 11, 2006 14:26: Message edited by: Peter Principle ]
Posts: 23 | Registered: Tuesday, October 31 2006 08:00
Raven v. Writing Desk
Member # 261
Profile Homepage #1
There is not a guide, although there may be advice scattered throughout this message board. There are three files you will want to look at in the scripts folder, which should begin "gf1" or "g3" or something like that. the items/chars one is the one you want. Most of the entries are pretty self-explanatory, just find the one for the item you want to edit, find the attribute that looks like it affects ability power, and change it.

And for the love of god, do this on a complete copy of the game folder, as it affects the whole application.

--------------------
Slarty vs. DeskDesk vs. SlartyTimeline of ErmarianG4 Strategy Central
Posts: 3560 | Registered: Wednesday, November 7 2001 08:00
Infiltrator
Member # 7488
Profile #2
I'd tell you, but I don't know myself; however, here's one way you can at least find the right file.

I'm assuming you want to change the actual item definition, so just find where the item is defined and change it. Search the "Scrpits" folder to find the text "begindefineitem" within a file.

Remember to make yourself a backup copy of the original file, just in case.

--------------------
Either I'm crazy, or everybody else is nuts. And I know I'm not crazy because the little man who lives on my shoulder told me so.

If people don't think there's something wrong with you, there's something wrong with you.
Posts: 558 | Registered: Friday, September 15 2006 07:00
Apprentice
Member # 7617
Profile #3
quote:
Originally written by Artequila:

And for the love of god, do this on a complete copy of the game folder, as it affects the whole application.
I'm not sure I understand this warning. Can you elaborate?
Posts: 23 | Registered: Tuesday, October 31 2006 08:00
Shaper
Member # 7472
Profile Homepage #4
He means to that you should have a back-up, as The Mystic said. Otherwise, you'll have to reinstall the game.

--------------------
Scenarios need reviews! Please rate these scenarios at the CSR after playing them!
AmnesiaDileciaThe Empire's New GroveExpress Delivery
Twilight ValleyWitch HuntWhere the Rivers MeetFoul Hordes
Posts: 2686 | Registered: Friday, September 8 2006 07:00
Apprentice
Member # 7617
Profile #5
quote:
Originally written by Nioca:

He means to that you should have a back-up, as The Mystic said. Otherwise, you'll have to reinstall the game.
I didn't understand the part about it affecting the whole application.
Posts: 23 | Registered: Tuesday, October 31 2006 08:00
Raven v. Writing Desk
Member # 261
Profile Homepage #6
What I mean is that GF loads parameters from those files when it starts up. So you aren't just editing one saved game, or one particular occurance of an item -- you're editing every occurance of that item ever. Similarly, it is possible to make the game crash with certain invalid values. So edit a backup. Common sense really.

--------------------
Slarty vs. DeskDesk vs. SlartyTimeline of ErmarianG4 Strategy Central
Posts: 3560 | Registered: Wednesday, November 7 2001 08:00
Guardian
Member # 5360
Profile #7
/\
{|}
{|}
{|}
-X- fondly remembers changing every item in the game to "Unused" because he accidentaly deleted a slash in the first line. Terrible.

[ Sunday, November 12, 2006 05:23: Message edited by: -X- ]

--------------------
May the fires of Undeath burn in your soul, and consume it.
Posts: 1636 | Registered: Wednesday, January 5 2005 08:00
Shock Trooper
Member # 303
Profile #8
Adding on to what the others have said, but saying it my own way. If you do feel the need to adjust some of the stats within the files, it's imperative that you know exactly what you are doing or you will royaly screw up your game play. :cool:

--------------------
My name's Solberg. Pronounced Sol-Berg. Exile/Avernum's Greatest LIVING Archmage! I'm sure you've heard of me at some point.
Posts: 385 | Registered: Tuesday, November 20 2001 08:00
Apprentice
Member # 7617
Profile #9
quote:
Originally written by Artequila:

What I mean is that GF loads parameters from those files when it starts up. So you aren't just editing one saved game, or one particular occurance of an item -- you're editing every occurance of that item ever. Similarly, it is possible to make the game crash with certain invalid values. So edit a backup. Common sense really.
Ah yes, I understand what you mean.

Thanks for the help!

So, if anyone else is wondering (assuming there's anyone out there who doesn't alreay know), here's how to change the number of skill points you get for using a wisdom xtal.

The file that I wanted was av4itemschars.txt. I did a Find for the character string "wisdom", and I found this line:

it_name = "Wisdom Crystal";
it_value = 500;
it_ability = 223;
it_level = 1;
it_graphic_coloradj

If the numerical value for it_level is changed, the new value of skill points added will be X+1. So if you change the value to 20, it will add 21 skill points to your character.
Posts: 23 | Registered: Tuesday, October 31 2006 08:00
Warrior
Member # 7614
Profile #10
I made a really nasty bow through item editting.
begindefineitem 477;
import = 316;
it_name = "Klehvarh's Bow";
it_value = 3000;
it_ability = 52;
it_level = 80;
it_graphic_coloradj = 64;
it_stats_to_affect 0 = 10;
it_stats_addition 0 = 2;
it_stats_to_affect 1 = 6;
it_stats_addition 1 = 3;
it_stats_to_affect 2 = 204;
it_stats_addition 2 = 2;
It's been a while, but it shot acid arrows of unusual potency. Like people said, make sure you back things up. Use the // symbol to comment the script so you can make and reverse changes easily.
Posts: 143 | Registered: Sunday, October 29 2006 07:00
Shaper
Member # 7472
Profile Homepage #11
Wow. I'm a bigger fan of Submission arrows, though. All I have to do is have one person pelting an enemy consistently, and the other one stabbing.

--------------------
Scenarios need reviews! Please rate these scenarios at the CSR after playing them!
AmnesiaDileciaThe Empire's New GroveExpress Delivery
Twilight ValleyWitch HuntWhere the Rivers MeetFoul Hordes
Posts: 2686 | Registered: Friday, September 8 2006 07:00
Shock Trooper
Member # 3716
Profile #12
I apologyze for this "off-topic" but I must ask: when is Geneforge going to be out so we can buy it??
Thanks in advance for your answer.

--------------------
"Inspiration comes from hard work" -Charles Baudelaire.
Posts: 292 | Registered: Sunday, November 23 2003 08:00
Councilor
Member # 6600
Profile Homepage #13
There's a whole forum dedicated to that game, and one of the threads has the answer.

Dikiyoba.
Posts: 4346 | Registered: Friday, December 23 2005 08:00
Shaper
Member # 7472
Profile Homepage #14
First, this isn't just off-topic, this is the wrong forum.

Secondly, it comes out sometime around November 20th for Mac, and sometime in early 2007 for Windows.

EDIT: And since Dikiyoba beat me to it, I must add that you spelled 'apologize' wrong just so that my post has a reason for existing..

[ Sunday, November 12, 2006 16:08: Message edited by: Nioca ]

--------------------
Scenarios need reviews! Please rate these scenarios at the CSR after playing them!
AmnesiaDileciaThe Empire's New GroveExpress Delivery
Twilight ValleyWitch HuntWhere the Rivers MeetFoul Hordes
Posts: 2686 | Registered: Friday, September 8 2006 07:00
Off With Their Heads
Member # 4045
Profile Homepage #15
Anyone wanting to script in A4/GF should probably get a reasonable feel for BoA scripting first, which is very similar and actually has documentation.

--------------------
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
Infiltrator
Member # 7488
Profile #16
quote:
Originally written by Kelandon:

Anyone wanting to script in A4/GF should probably get a reasonable feel for BoA scripting first, which is very similar and actually has documentation.
Similar, my (censored). They're nearly, if not totally, identical, both in terminology and in syntax.

Anyway, I agree that getting some practice first is a very good idea when playing around with scripts. And even after you've had some fun with scripting before attempting the real thing, be careful. I once caused my computer to crash by forgetting a semicolon when fooling around with the GF1 script.

--------------------
Either I'm crazy, or everybody else is nuts. And I know I'm not crazy because the little man who lives on my shoulder told me so.

If people don't think there's something wrong with you, there's something wrong with you.
Posts: 558 | Registered: Friday, September 15 2006 07:00
Apprentice
Member # 7617
Profile #17
quote:
Originally written by Slippery Salomon:

I made a really nasty bow through item editting.
begindefineitem 477;
import = 316;
it_name = "Klehvarh's Bow";
it_value = 3000;
it_ability = 52;
it_level = 80;
it_graphic_coloradj = 64;
it_stats_to_affect 0 = 10;
it_stats_addition 0 = 2;
it_stats_to_affect 1 = 6;
it_stats_addition 1 = 3;
it_stats_to_affect 2 = 204;
it_stats_addition 2 = 2;

Can anyone explain what the variables it_level and it_ability affect? And why do some items have an import characteristic, and some don't?
Posts: 23 | Registered: Tuesday, October 31 2006 08:00
...b10010b...
Member # 869
Profile Homepage #18
quote:
Originally written by Peter Principle:

Can anyone explain what the variables it_level and it_ability affect?
it_ability determines what special ability an item has, and it_level determines how strong that ability is. For example, if a particular weapon covers enemies in acid, that's an it_ability, and the amount of acid it covers them in is determined by it_level.

quote:
And why do some items have an import characteristic, and some don't?
Import just means that all properties of an item that aren't explicitly defined are inherited from another item. It's a convenient way of making "sets" of similar items (e.g. all rings are going to have certain things in common, like weight, so they all import from a basic ring item.) The first item of a set doesn't have anything else to import from, so it won't have an import field.

[ Wednesday, November 15, 2006 17:23: Message edited by: Thuryl ]

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Shaper
Member # 7472
Profile Homepage #19
it_level affects the power of the item in question. it_ability is the special ability of the item, listed in a different text file.

Import takes another item's characteristics as it's template. Clear clears all basic values to normal. if neither are used, values set in the previous item will be carried over to the current item.

EDIT: That's what happens when I go to get some soda before answering a question. I chime in 7 minutes late.

[ Wednesday, November 15, 2006 17:31: Message edited by: Nioca ]

--------------------
Scenarios need reviews! Please rate these scenarios at the CSR after playing them!
AmnesiaDileciaThe Empire's New GroveExpress Delivery
Twilight ValleyWitch HuntWhere the Rivers MeetFoul Hordes
Posts: 2686 | Registered: Friday, September 8 2006 07:00