2 calls please...

AuthorTopic: 2 calls please...
Agent
Member # 4506
Profile Homepage #0
Guys,

Please tell me what two calls I need for;

a) making the Town Hostile/Friendly
b) teaching the party a spell/recipe

--------------------
"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
Shake Before Using
Member # 75
Profile #1
set_crime_level(number higher than the crime tolerance); will effectively hostile a town. Not sure if there's a real way to friendly a town, though.

change_spell_level is what you're looking for with regards to teaching spells.
Posts: 3234 | Registered: Thursday, October 4 2001 07:00
Shake Before Using
Member # 75
Profile #2
double posting sux

[ Thursday, July 29, 2004 14:36: Message edited by: Imban ]
Posts: 3234 | Registered: Thursday, October 4 2001 07:00
Warrior
Member # 2838
Profile #3
For a) you can use make_town_hostile() or set_town_status(which town, new_status).

--------------------
…../|,-‘`¯¯`\(o)_\,----,,,_………
…( `\(o),,_/` ¯ : o : :: o`-, … I'm under your bed.
Posts: 118 | Registered: Wednesday, April 2 2003 08:00
Agent
Member # 2820
Profile #4
You can make a town friendy by setting its status to 1 when you are OUTSIDE of the town. Strange things might happen otherwise. If you want the people to suddenly like you again, you will have to cycle through all the creatures and make them friendly with a loop.

--------------------
Thuryl: I mean, most of us don't go around consuming our own bodily fluids, no matter how delicious they are.
====
Alorael: War and violence would end if we all had each other's babies!
====
Drakefyre: Those are hideous mangos.
Posts: 1415 | Registered: Thursday, March 27 2003 08:00
Agent
Member # 4506
Profile Homepage #5
quote:
Originally written by Imban:

set_crime_level(number higher than the crime tolerance); will effectively hostile a town. Not sure if there's a real way to friendly a town, though.

change_spell_level is what you're looking for with regards to teaching spells.

Thanks for the SET_CRIME_LEVEL(any old number higher than crime level);

What do you have to type after CHANGE_SPELL_LEVEL?
What is it - (1,5,2) [pretending that is Priest spell five set to level 2]???

Please answer - Archmagi Micael

UNDEAD VALLEY IS NEARLY FINISHED!!!!!!! TESTING VERSION 4 SHOULD BE OUT IN A FEW MORE DAYS, AND THEN IF THE TESTERS GIVE A GREEN LIGHT - IT'LL BE SENT IN TO SPIDERWEB AND THE BoA CENTER!

--------------------
"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
Off With Their Heads
Member # 4045
Profile Homepage #6
Do you not have a copy of the docs or something?

The call give_recipe(short which_recipe) will give a recipe.

The parameters on the call change_spell_level are: change_spell_level(short which_char,short mage_or_priest,short which_spell,short amt_to_change). Literally straight out of the Appendices, page 23: "Changes the [level] character which_char knows spell which_spell by amt_to_change (which can be negative). If mage_or_priest is 0, changes mage spell. If 1, changes priest spell." And basically the character's mage or priest spells skill has to be high enough to learn the spell in the first place.

Not that it's change spell level, not set spell level, meaning that it increments. If amt_to_change is 1, and if the character already knows the spell at level 3, then the character will know the spell at level 4 after this call. You can use get_spell_level to get around this.

--------------------
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
Profile Homepage #7
Thanks!

--------------------
"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