Author Topic: DO STUFF HERE ANDY! Better code for something, maybe.  (Read 5745 times)

Offline SimDing0

  • Back In Black
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3496
  • Gender: Male
  • Word Enhancer
DO STUFF HERE ANDY! Better code for something, maybe.
« on: April 02, 2005, 02:58:22 PM »
Remove Shazzellim from Elhan:

Code: [Select]
COPY_EXISTING ~C6ELHAN.CRE~ ~override/C6ELHAN.CRE~ /* Remove Elhan's evil-aligned Shazzellim scimitars */
~SUELHAN.CRE~ ~override/SUELHAN.CRE~
REPLACE_TEXTUALLY "SW1H50" "SW1H22"

Restore Xzar's creations:

Code: [Select]
COPY_EXISTING ~ar0407.are~ ~override~
READ_LONG 0x54 "actoroffset"
READ_SHORT 0x58 "#actors"
SET "currentactor" = 0
WHILE ("%currentactor%" < "%#actors%") BEGIN
READ_ASCII ("%actoroffset%" + ("%currentactor%" * 272) + 128) "actorname"
PATCH_IF (("%actorname%" STRING_COMPARE_CASE "ICGOB01") = 0) BEGIN
WRITE_ASCII ("%actoroffset%" + ("%currentactor%" * 272) + 128) "XGHAST1"
END
PATCH_IF (("%actorname%" STRING_COMPARE_CASE "ICGOB02") = 0) BEGIN
WRITE_ASCII ("%actoroffset%" + ("%currentactor%" * 272) + 128) "XGOLEM"
WRITE_BYTE ("%actoroffset%" + ("%currentactor%" * 272) + 134) 0
END
PATCH_IF (("%actorname%" STRING_COMPARE_CASE "ICGOB03") = 0) BEGIN
WRITE_ASCII ("%actoroffset%" + ("%currentactor%" * 272) + 128) "XGHAST2"
END
SET "currentactor" = ("%currentactor%" + 1)
END
BUT_ONLY_IF_IT_CHANGES

Minor tweak to the golem behaviour so it doesn't attack BEFORE Prebek speaks:

Code: [Select]
COPY_EXISTING ~XGOLEM.CRE~ ~override~
WRITE_ASCII 0x248 "D0XGOLEM"
WRITE_ASCII 0x268 "WTASIGHT"

Where D0XGOLEM.BAF is compiled and contains:

Code: [Select]
IF
!Allegiance("XAPPREN1",ENEMY)
!Allegiance("XAPPREN2",ENEMY)
!Dead("XAPPREN1")
!Dead("XAPPREN2")
THEN
RESPONSE #100
END
« Last Edit: April 12, 2005, 05:53:31 PM by Andyr »

Offline Andyr

  • Dance Commander
  • PPG
  • Planewalker
  • *****
  • Posts: 3178
  • Gender: Male
    • The Gibberlings Three IE mod community
Re: Better code for something, maybe.
« Reply #1 on: April 02, 2005, 03:36:34 PM »
Thanks.
"We are the Gibberlings Three, as merry a band as you ever did see..." - Home of IE mods

<jcompton> Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"

I am unfortunately not often about these days so the best way to get hold of me is via email.

Offline SimDing0

  • Back In Black
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3496
  • Gender: Male
  • Word Enhancer
Re: Better code for something, maybe.
« Reply #2 on: April 04, 2005, 05:07:22 PM »
Gorje is equipped with some chaimmail.

Suggest:

COPY_EXISTING ~gorje.cre~ ~override~
REPLACE_TEXTUALLY "CHAM01" "CHAN01"

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: Better code for something, maybe.
« Reply #3 on: April 04, 2005, 05:21:15 PM »
Heheh.  Oops.  Thanks.  :)
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline Andyr

  • Dance Commander
  • PPG
  • Planewalker
  • *****
  • Posts: 3178
  • Gender: Male
    • The Gibberlings Three IE mod community
Re: DO STUFF HERE ANDY! Better code for something, maybe.
« Reply #4 on: April 15, 2005, 09:51:23 AM »
Gorje and Shazzelim stuff done locally. :) Sim, are the Golem and Prebek tweaks new stuff or changes to the way something is already being coded? I'm not sure from the reading.
"We are the Gibberlings Three, as merry a band as you ever did see..." - Home of IE mods

<jcompton> Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"

I am unfortunately not often about these days so the best way to get hold of me is via email.

Offline icelus

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3173
  • Gender: Male
Re: DO STUFF HERE ANDY! Better code for something, maybe.
« Reply #5 on: April 15, 2005, 10:17:41 AM »
They should be a better way to code the Xzar's Creation component.
<Moongaze> Luckily BWL has a very understanding and friendly admin.

Offline Andyr

  • Dance Commander
  • PPG
  • Planewalker
  • *****
  • Posts: 3178
  • Gender: Male
    • The Gibberlings Three IE mod community
Re: DO STUFF HERE ANDY! Better code for something, maybe.
« Reply #6 on: April 15, 2005, 10:29:00 AM »
Silly me. :) Anyhow, incorporated. Thanks, Sim! The ReadMe says that a lot...
"We are the Gibberlings Three, as merry a band as you ever did see..." - Home of IE mods

<jcompton> Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"

I am unfortunately not often about these days so the best way to get hold of me is via email.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: