ivanforum ivanforum
Forum for Iter Vehemens ad Necem
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   fchat fChat   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Valpurium Palm Branches

 
Post new topic   Reply to topic    ivanforum Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Freelance Berzerker
orc general


Joined: 28 Jun 2006
Posts: 805
Location: In Valhalla, currently posing as "Engels"

PostPosted: Sun Sep 03, 2006 3:12 pm    Post subject: Valpurium Palm Branches Reply with quote

HolyBanana,

I've been wanting to wield valpurium palm branches with my character for a long time. The required strength for wielding such a branch one-handed is 116. Anyways, for the sake of immediate gratification I coded the femaleslave to start out with 2 valpurium branches already equipped which I would then kill them for:

Code:

femaleslave
{
  DefaultArmStrength = 10;
  DefaultLegStrength = 10;
  DefaultDexterity = 10;
  DefaultAgility = 10;
  DefaultEndurance = 10;
  DefaultPerception = 18;
  DefaultIntelligence = 15;
  DefaultWisdom = 25;
  DefaultCharisma = 25;
  DefaultMana = 5;
  Sex = FEMALE;
  SkinColor = rgb16(160, 100, 64);
  HairColor = rgb16(80, 48, 32);
  HeadBitmapPos = 112, 80;
  TorsoBitmapPos = 32, 208;
  ArmBitmapPos = 64, 208;
  LegBitmapPos = 0, 144;
  TotalVolume = 40000;
  TotalSize = 170;
  Adjective = "female";
  RightWielded = VALPURIUM palmbranch;
  LeftWielded = VALPURIUM palmbranch;
  BaseUnarmedStrength = 200;
  HostileReplies == ""Yikes!"";
  IsAbstract = true;
  IsExtraCoward = true;
  CanRead = true;


First I adjusted the playerkind's STR to 116, but after he acquired 2 palm branches, he refused to used them as uncategorized weapons and only ended kicking monsters. I upped the STR to 200, but things remained the same.

Code:

playerkind
{
  DefaultArmStrength = 200;
  DefaultLegStrength = 10;
  DefaultDexterity = 10;
  DefaultAgility = 10;
  DefaultEndurance = 10;
  DefaultPerception = 10;
  DefaultIntelligence = 10;
  DefaultWisdom = 10;
  DefaultCharisma = 10;
  DefaultMana = 10;
  DefaultMoney = 45;
  TorsoBitmapPos = 32, 416;
  LegBitmapPos = 0, 416;
  TotalVolume = 80000;
  TotalSize = 175;
  CanRead = true;
  NameSingular = "human";
  AttachedGod = SEGES;
  DisplacePriority = 2;
  Inventory == amulet(AMULET_OF_LIFE_SAVING) { Times = BONUS_LIVES; }
  BodyArmor = VALPURIUM bodyarmor(PLATE_MAIL) { Enchantment = 50; }
  Cloak = VALPURIUM cloak(CLOAK_OF_ELECTRICITY_RESISTANCE) { Enchantment = 50; }
  Belt = VALPURIUM belt { Enchantment = 50; } 
  RightWielded = justifier;
  LeftWielded = justifier;
  RightGauntlet = VALPURIUM gauntlet(GAUNTLET_OF_STRENGTH) { Enchantment = 50; }
  RightRing = ring(RING_OF_FIRE_RESISTANCE);
  LeftRing = ring(RING_OF_POISON_RESISTANCE);
  RightBoot = PHOENIX_FEATHER boot(BOOT_OF_AGILITY) { Enchantment = 50; }
 
}


Since the valpurium palm branches weigh so much, do they exceed a weight limitation coded into the game which prevents overly cumbersome items from being wielded as weapons?

EDIT: I tried to add a damage flag to the palm branch, but my player still couldn't use it as weapon.

Code:
palmbranch
{
  DefaultSize = 80;
  Possibility = 0;
  Category = MISC;
  DefaultMainVolume = 4000;
  StrengthModifier = 50;
  BitmapPos = 0, 240;
  FormModifier = 15;
  NameSingular = "palm branch";
  NamePlural = "palm branches";
  MainMaterialConfig == PALM_LEAF;
  Roundness = 80;
  IsTwoHanded = true;
  AttachedGod = SILVA;
  WieldedBitmapPos = 160, 208;
  IsValuable = false;
  DamageFlags = BLUNT;
}
Back to top
View user's profile Send private message
Freelance Berzerker
orc general


Joined: 28 Jun 2006
Posts: 805
Location: In Valhalla, currently posing as "Engels"

PostPosted: Fri Sep 08, 2006 3:33 pm    Post subject: Reply with quote

mistifilio, Planplan, and Z,

Any idea why valpurium palm branches can't be wielded as weapons?
Back to top
View user's profile Send private message
Planplan
mutant ass


Joined: 19 Feb 2005
Posts: 78
Location: Physically in France, mind in Dreamland

PostPosted: Fri Sep 08, 2006 4:24 pm    Post subject: Reply with quote

Code:
miscitem.h

ITEM(palmbranch, item)
{
 public:
  virtual truth IsShield(const character*) const { return true; }
};


The plambranch are considered a shield ^^
_________________
I'm french, so my english is bad...
But frogs legs are so delicious ;)
Back to top
View user's profile Send private message MSN Messenger
Freelance Berzerker
orc general


Joined: 28 Jun 2006
Posts: 805
Location: In Valhalla, currently posing as "Engels"

PostPosted: Fri Sep 08, 2006 4:28 pm    Post subject: Reply with quote

Aw, dude. My bad. Well, I guess that screws my efforts to try to use them as a weapon. Hell, how about we add shield-bashing to the game?

Thanks for your efforts, Planplan.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ivanforum Forum Index -> Programming All times are GMT


Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group