Author Topic: [REQ] minor changes in sc#addWmpAre  (Read 1505 times)

Offline K4thos

  • Planewalker
  • *****
  • Posts: 110
[REQ] minor changes in sc#addWmpAre
« on: February 10, 2016, 10:01:05 AM »
Code: [Select]
SAY ( "%area_off%" + 0x40 + ( 0xf0 * "%area_num%" ) ) "%strName%"    // area name
SAY ( "%area_off%" + 0x44 + ( 0xf0 * "%area_num%" ) ) "%strDesc%"    // area description
could be changed to:
Code: [Select]
PATCH_IF "%strName%" STR_EQ "" BEGIN
  WRITE_LONG ( "%area_off%" + 0x40 + ( 0xf0 * "%area_num%" ) ) "-1"
END ELSE BEGIN
  SAY ( "%area_off%" + 0x40 + ( 0xf0 * "%area_num%" ) ) "%strName%"    // area name
END
PATCH_IF "%strDesc%" STR_EQ "" BEGIN
  WRITE_LONG ( "%area_off%" + 0x44 + ( 0xf0 * "%area_num%" ) ) "-1"
END ELSE BEGIN
  SAY ( "%area_off%" + 0x44 + ( 0xf0 * "%area_num%" ) ) "%strDesc%"    // area description
END
Expanding TLK file if string doesn't exist doesn't make much sense.

If this will be implemented than both strName and strDesc should default to "" in function's variable declaration.
« Last Edit: February 10, 2016, 12:03:13 PM by K4thos »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: [REQ] minor changes in sc#addWmpAre
« Reply #1 on: February 14, 2016, 02:56:52 PM »
I'll have a look.

 

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)?: