Town Hostile -> Set Attitude

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: Town Hostile -> Set Attitude
The Establishment
Member # 6
Profile #0
I modified the town hostile node into a set attitude node. It still behaves like a town hostile node under the default behavior (all fields -1), but allows the user more control of the attitude of the creatures. The following functions were modified:

items.c :: a new function set_attitude was created.items.h :: added void set_attitude at bottomspecials.c :: node call goes to set_attitude instead of make_town_hostileThe behavior is as follows:
Extra1a: Specifies lower monster limit (-1 for first monster)
Extra1b: Specifies upper monster limit (-1 for last monster)
Extra2a: Specifies attitude (-1 = hostile type A, 0 = friendly, 1 = hostile type A, 2 = neutral, 3 = hostile type B)

Any comments?

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00
Off With Their Heads
Member # 4045
Profile Homepage #1
quote:
Originally written by *i:

Extra2a: Specifies attitude (-1 = hostile type A, 0 = friendly, 1 = hostile type A, 2 = neutral, 3 = hostile type B)
That seems like a weird way to organize the attitudes. I'm assuming there's a reason?

--------------------
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
The Establishment
Member # 6
Profile #2
Primarily because that's how Jeff had it. The -1 is there for backward compatability.

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00
Shaper
Member # 73
Profile #3
Neutral? I thought it was "Friendly, Docile", "Friendly, will fight", "Hostile type A", and "Hostile type B". Hostile of either type will attack the other type and both Friendly types, Friendly Will Fight attacks both Hostile types, and Friendly Docile won't attack anything but will be attacked by either Hostile type. At least that's how I understood it.

--------------------
My Myspace, with some of my audial and visual art
The Lyceum - The Headquarters of the Blades designing community
The Louvre - The Blades of Avernum graphics database
Alexandria - The Blades of Exile Scenario database
BoE Webring - Self explanatory
Polaris - Free porn here
Odd Todd - Fun for the unemployed (and everyone else too)
They Might Be Giants - Four websites for one of the greatest bands in existance
--------------------
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Posts: 2957 | Registered: Thursday, October 4 2001 07:00
The Establishment
Member # 6
Profile #4
You are correct, I was quick with my words. Either way, you know what I meant.

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00