What have I done...

https://attnam.com/topics/What-have-I-done

The Cathedral of Attnam > Other Coding

#1 Nov 14, 2009, 11:24 pm Hide

4zb4

tonberry
{
  DefaultArmStrength = 90;
  DefaultLegStrength = 10;
  DefaultDexterity = 5;
  DefaultAgility = 5;
  DefaultEndurance = 20;
  DefaultPerception = 15;
  DefaultIntelligence = 18;
  DefaultWisdom = 18;
  DefaultCharisma = 5;
  DefaultMana = 5;
  SkinColor = rgb16(0, 96, 0);
  EyeColor = rgb16(200, 200, 0);
  ClothColor = rgb16(48, 32, 16);
  HeadBitmapPos = 96, 48;
  TorsoBitmapPos = 32, 112;
  ArmBitmapPos = 64, 144;
  LegBitmapPos = 16, 64;
  TotalVolume = 25000;
  TotalSize = 50;
  NameSingular = "tonberry";
  CanBeGenerated = true;
  Sex = UNDEFINED;
  RightWielded = chefknife;
  LeftWielded = everyonesgrudge;
  KnownCWeaponSkills == SMALL_SWORDS;
  CWeaponSkillHits == 20;
  RightSWeaponSkillHits = 5;
  PanicLevel = 0;
  HostileReplies == "Doink!";
  FriendlyReplies == "@Dd stares blankly at you";
  FleshMaterial = GOBLINOID_FLESH;
  AttachedGod = CRUENTUS;
  WieldedPosition = 0, -2;
}

...And that's just the start.
#2 Nov 14, 2009, 11:34 pm Hide

4zb4

chefknife
{
  DefaultSize = 56;
  Possibility = 1;
  WeaponCategory = SMALL_SWORDS;
  DefaultMainVolume = 60;
  DefaultSecondaryVolume = 20;
  BitmapPos = 48, 240;
  FormModifier = 190;
  StrengthModifier = 150;
  Adjective = "pointy";
  NameSingular = "knife";
  MainMaterialConfig == MITHRIL;
  SecondaryMaterialConfig == OCTIRON;
  Roundness = 10;
  Price = 500;
  CanBeCloned = false;
  CanBeMirrored = true;
  Alias == "Chef's Knife";
  AttachedGod = CLEPTIA;
  WieldedBitmapPos = 160, 32;
  EnchantmentPlusChance = 1;
  DamageFlags = SLASH|PIERCE;

  Config BROKEN;
  {
    Possibility = 0;
    BitmapPos = 48, 272;
    Price = 100;
    WieldedBitmapPos = 176, 208;
    EnchantmentPlusChance = 1;
  }
}

everyonesgrudge
{
  DefaultSize = 30;
  Possibility = 100;
  WeaponCategory = BLUNT_WEAPONS;
  DefaultMainVolume = 400;
  StrengthModifier = 50;
  FormModifier = 20;
  Price = 1000;
  BaseEmitation = rgb24(125, 125, 105);
  NameSingular = "Everyone's Grudge";
  MainMaterialConfig == OCTIRON;
  Alias == "say goodbye";
  Roundness = 75;
  CanBeBroken = true;
  BitmapPos = 0, 256;
  WallBitmapPos = 0, 192;
  AttachedGod = LEGIFER;
  WieldedBitmapPos = 160, 160;
} 
#3 Nov 15, 2009, 1:07 am Hide

Battleguy

And does he move forward slowly?
#4 Nov 15, 2009, 2:37 am Hide

4zb4

*points to agi*
#5 Nov 15, 2009, 3:03 am Hide

4zb4

Draft graphic ( x3 normal size and gone fuzzy coz of file conversion )
#6 Nov 15, 2009, 3:10 am Hide

Battleguy

Battleguy high-fives Azba.
#7 Nov 15, 2009, 3:18 am Hide

4zb4

And now I have a problem. Programming the tonberry to use a spell is easy enough. HOWEVER, making that spell do damage equal to the total amount of kills is going to annihilate most anything under the sun. And is mostly unprogrammable anyway. SO, my question is thus: How do I program the tonberry to use a spell that reduces the target's health by 10% of the amount of kills made by the target?
#8 Nov 16, 2009, 5:30 pm Hide

Alveradok

Maybe hard-code it? It would be slick if adding a new damagetype, say GRIEF would have a typical bonus equal to numberoffrags/10.

Also, fuck yeah Tonberry

Also2, the IVAN devs surely wouldn't be so merciful to give us just that lousy 10% of damage
#9 Nov 16, 2009, 10:01 pm Hide

capristo

Nice work 4zb4!
I think it's funny that the topic is called "What have I done" instead of "What I have done", I assume that's a mistake but it makes it sound like you accidentally unleashed something catastrophic
#10 Nov 17, 2009, 12:07 am Hide

chaostrom

Are you kidding. You can easily rack up a few hundred kills. It'll instantly destroy any body part it targets, with the possible exception of the torso.
#11 Nov 17, 2009, 4:25 am Hide

4zb4

@chao: hence my wanting to make it do 10% of the total kill count in damage rather than the whole grand total. That would be completely outlandish in IVAN, due to the low hp scores. And it would be used similar to an explosion or broken striking wand, affecting all body parts. Did I mention these Tonberries are found towards the end of the game?

CLARIFICATION:
Grudge Damage = (Total Kills x 0.10)
Spread to all body parts.
Therefore if TKs = 100, damage = 10 spread to all body parts. And so on.
#12 Nov 17, 2009, 9:53 pm Hide

chaostrom

It's worse if it's to be spread out. Do you have any idea how much HP your head has?
#13 Nov 19, 2009, 9:44 am Hide

Alveradok

Meh, I'd rather see an instakilling tonberry than just no tonberry.
#14 Nov 19, 2009, 9:55 pm Hide

chaostrom

Don't get me wrong, I'm not against it. Just trying to balance it out.
#15 Nov 20, 2009, 12:39 am Hide

4zb4

Balanced or not, it's unprogrammable as of now. We can argue about balance later...
#16 Nov 20, 2009, 10:47 am Hide

Planplan

4zb4 wrote
Balanced or not, it's unprogrammable unscriptable as of now. We can argue about balance later...
I can't test anything right now (at work), but after a small dive in the sources (0.50), you can add a new damage type and how it's calculated, generalized damages.

Take a look in char.cpp around line 580 if you can code.