View Full Version: Coding Kim Jong-Il into IVAN

ivan >>Programming >>Coding Kim Jong-Il into IVAN


<< Prev | Next >>

Freelance Bezerker- 07-18-2006
Coding Kim Jong-Il into IVAN
Hello modders, I've succeeded in replacing the sumowrestler in the first town with the Enner Beast and also provided him with about 15 insults that Kim Jong-Il regularly uses against the West. I'd like help on the following: ++++++++++++++++++++++ 1) I'd like to replace the sumowrestler with "Kim Jong-Il." Currently the Enner Beast is still named "sumowrestler" because I don't know if renaming this character will interfere with code in any other sections. Please give me some tips on what code is linked to the sumowrestler is all the separate files. 2) I'd like to change the color of the Enner Beast's "jacket" to light grey, kind of like the Chinese jacket that "Dear Leader" Kim Jong-Il wears. 3) If possible, I'd like to create a completely separate room housing Kim Jong-Il in the first town. Here is what I've written for the "Kim Jong-Il" NPC so far: } Kimjongil { DefaultArmStrength = 1; DefaultLegStrength = 1; DefaultDexterity = 1; DefaultAgility = 1; DefaultEndurance = 1; DefaultPerception = 100; DefaultIntelligence = 100; DefaultWisdom = 100; DefaultCharisma = 1; DefaultMana = 0; CanOpen = false; CanApply = false; TotalVolume = 65000; TotalSize = 150; Adjective = "Kim"; NameSingular = "Jong-Il"; UsesLongAdjectiveArticle = true; IsPolymorphable = false; AttackStyle = USE_HEAD; BaseBiteStrength = 5000; CanUseEquipment = true; CanBeWished = true; LegBitmapPos = 16, 48; TorsoBitmapPos = 32, 48; ArmBitmapPos = 64, 48; HeadBitmapPos = 96, 320; HairColor = rgb16(64, 20, 0); ClothColor = rgb16(0, 0, 100); BootColor = rgb16(90, 50, 10); LegMainColor = rgb16(64, 20, 0); PanicLevel = 75; FleshMaterial = ENNER_BEAST_FLESH; DeathMessage = "@Dd dies and the world is finally freed from this terrible dictator."; Inventory == horn(FEAR); IsUnique = true; /* currently */ HostileReplies == "Running dog of Western-capitalist Imperialism, die you!!!"; FriendlyReplies = { 22, "\"You bellicose human scum, your ridiculous clamour for human rights is nothing but a shrill cry!\"", "\"You despicable reactionary, we will thwart your frantic attempts to stifle us!\"", "\"You arrogant flunkey!\"", "\"You black-hearted reactionary, we will transform New Attnam into a sea of fire!\""; "\"You bloodthirsty flunkey!\"", "\"You black-hearted traitor, you will be dealt a thousandfold retaliatory blow!\"", "\"You psychopathological running dog!\"", "\"You nondescript degenerate Imperialist kobold, we will crush with the force of Juche ideology!!!\"", "\"You wicked political dwarf!\"", "\"You Imperialist zombie, we will kill you a thousand times!\"", "\"You shameless capitalist hooligan!\"", "\"You swollen-headed reactionary!\"", "\"You anti-socialist flunkey, you have glaringly revealed your true colours!\"", "\"You bloodthirsty lackey!\"", "\"You bellicose orc-gelatinous hybrid!\"", "\"You imperialist renegade, your accusation against the DPRK is no more than barking at the moon!\"", "\"You half-baked traitor!\"", "\"You black-hearted running dog!\"", "\"You shameless stooge!\"", "\"You extra-large hooligan!\"", "\"You swollen-headed human scum, you would be well advised to behave with discretion!\"", "\"Your capitalist deceptions will not fool the people of North Korea, you black-faced imperialist hedgehog!\"", } AttachedGod = MORTIFER; BiteCapturesBodyPart = false; } ++++++++++++++++++++++++ Here is a screenshot for your viewing pleasure:

Planplan- 07-19-2006

ClothColor = rgb16(192, 192, 192); With this, you'll have a light grey. If you want to adjust it, you have to understand how RGB work. RGB stand for Red Green Blue. For computers, colors have a code, 3 number between 0 and 255, (R, G, B). (0, 0, 0) is pure black. (255, 255, 255) is pure white. (127, 127, 127) is a 50% grey. (255, 0, 0) is pure red. And so on ;) Experiment a bit, you'll quicly understand. For your other questions, I'm not sure, but think you need to edit C code a bit... Try to look in the dungeon.dat for a new building maybe.

Freelance Berzerker- 07-19-2006

Hello Planplan, Thanks for the help with the RGB. I've already tweaked Kim Jong-Il the Wrestler's "clothes" with it. I'm currently trying to add a sublevel to the sumoarena. I've successfully put in stairs, but when I try to descend, I get an "unexplained error." Would you mind telling me what I'm doing wrong? I've adjusted the number of levels in the city to "= 3" by the way. Level 1; { Description = "New Attnam's sumo wrestling arena"; ShortDescription = "SumoArena"; FillSquare = solidterrain(GROUND), MORAINE earth; Size = 55, 55; Rooms = 1; Items = 0; GenerateMonsters = false; IsOnGround = false; TeamDefault = NEW_ATTNAM_TEAM; LOSModifier = 32; IgnoreDefaultSpecialSquares = false; CanGenerateBone = false; DifficultyBase = 50; DifficultyDelta = 0; EnchantmentMinusChanceBase = -15; EnchantmentMinusChanceDelta = 0; EnchantmentPlusChanceBase = 0; EnchantmentPlusChanceDelta = 0; BackGroundType = GREEN_FRACTAL; Room { Pos = 19,12; Size = 13,13; WallSquare = solidterrain(GROUND), BALSA_WOOD wall(BRICK_FINE); FloorSquare = solidterrain(GROUND), 0; GenerateDoor = false; DivineMaster = ATHEIST; GenerateLanterns = false; Type = ROOM_SUMO_ARENA; GenerateFountains = false; AltarPossible = false; Shape = RECTANGLE; GenerateTunnel = false; GenerateWindows = false; IsInside = true; UseFillSquareWalls = false; Flags = 0; Square, Pos 6, 6; { OTerrain = stairs(SUMO_ARENA_EXIT) { AttachedArea = 0; AttachedEntry = STAIRS_DOWN; } EntryIndex = STAIRS_UP; } Square, Pos 6, 2; { OTerrain = stairs(STAIRS_DOWN); EntryIndex = STAIRS_DOWN; } Square, Pos 6, 0; { OTerrain = wall(BRICK_PRIMITIVE_PROPAGANDA); Items == lantern { SquarePosition = DOWN; } } Square, Pos 0, 6; { Items == lantern { SquarePosition = RIGHT; } } Square, Pos 12, 6; { Items == lantern { SquarePosition = LEFT; } } Square, Pos 6, 12; { Items == lantern { SquarePosition = UP; } } OTerrainMap { Pos = 3, 3; Size = 7, 7; Types { # = GLASS wall(BRICK_FINE); } } { ####### #.....# #.....# #.....# #.....# #.....# ####### } } } Level 2; { Description = "Yodok Prison"; FillSquare = solidterrain(GROUND), MORAINE earth; Size = 66, 66; Rooms = 1; Items = 0; GenerateMonsters = false; IsOnGround = false; LOSModifier = 32; IgnoreDefaultSpecialSquares = false; CanGenerateBone = false; DifficultyBase = 50; DifficultyDelta = 0; EnchantmentMinusChanceBase = -15; EnchantmentMinusChanceDelta = 0; EnchantmentPlusChanceBase = 0; EnchantmentPlusChanceDelta = 0; BackGroundType = GREEN_FRACTAL; Room { Pos = 19,12; Size = 13,13; WallSquare = solidterrain(GROUND), BALSA_WOOD wall(BRICK_FINE); FloorSquare = solidterrain(GROUND), 0; GenerateDoor = false; DivineMaster = ATHEIST; GenerateLanterns = false; Type = ROOM_NORMAL; GenerateFountains = false; AltarPossible = false; Shape = RECTANGLE; GenerateTunnel = false; GenerateWindows = false; IsInside = true; UseFillSquareWalls = false; Flags = 0; Square, Pos 6, 2; { OTerrain = stairs(STAIRS_UP); EntryIndex = STAIRS_UP; } Square, Pos 6, 0; { OTerrain = wall(BRICK_PRIMITIVE_PROPAGANDA); Items == lantern { SquarePosition = DOWN; } } Square, Pos 0, 6; { Items == lantern { SquarePosition = RIGHT; } } Square, Pos 12, 6; { Items == lantern { SquarePosition = LEFT; } } Square, Pos 6, 12; { Items == lantern { SquarePosition = UP; } } OTerrainMap { Pos = 3, 3; Size = 7, 7; Types { # = GLASS wall(BRICK_FINE); } } { ####### #.....# #.....# #.....# #.....# #.....# ####### } } } }

Planplan- 07-19-2006

Maybe I'll say something wrong, but I think you can't add a stair in the sumo arena without adding some C code. This arena is special, by the fact it take off all your inventory for exemple. I recommand you try to add a side branch in an other dungeon, UT for example.

Freelance Berzerker- 07-19-2006

I see. Is it possible to insert a stairs down from the structure in which Richard the Imperialist is housed, then?

Planplan- 07-20-2006

In every area that isn't special, I could be added without any problem. So I think it's possible in this area.

dalboz- 07-20-2006

you want to make Decos a torture chamber under his palace?

Freelance Berzerker- 07-25-2006

Yes. I thought it would be interesting adding a North Korean Gulag branch to IVAN, since the game is "socialist" after all. An underground prison bunker where the NK regimes hordes all the bananas! Kim Jong-il surrounded by a pile of Holy Bananas. Maybe I could even introduce a plot to prevent dictator Kim from destroying Atnam with WMD.

dalboz- 07-26-2006

that'll be easy if Kim decides to guard his holy bananas himself. *player zaps wand of fireballs* *bananas explode* *The evil dictator flies through the air and eventually escapes earth's gravity, floating into outer space*

Freelance Berzerker- 07-26-2006

That would be great, as it would make a direct reference to the first time the Economist featured the "Dear Leader" on its cover. Kim was dressed in a space suit and a cartoon bubble atop his head read "Greetings, Earthlings." If you get a chance, read "The Aquariums of Pyongyang" sometime for the skinny on Nork Gulags.

Freelance Berzerker- 07-27-2006

I was kind of expecting people to find my Kim Jong-Il dialogue mod humorous. Oh well, different part of the world I guess.

Somagu- 07-28-2006

2 days isn't exactly a long time on a forum, Berserker... Some people (not me) don't check the forums every day. I however, do, for the most part, I just haven't taken much interest in a slightly humorous monster that isn't finished.

Freelance Berzerker- 07-28-2006

Fair enough.

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.