Author Topic: DELETE_SPELL_HEADER doesn't work if min_level is set  (Read 789 times)

Offline Galactygon

  • Modding since 2002
  • Planewalker
  • *****
  • Posts: 378
  • Gender: Male
  • Creator of spells
DELETE_SPELL_HEADER doesn't work if min_level is set
« on: December 03, 2017, 11:15:16 AM »
I have been unable to get this to do anything:
Code: [Select]
COPY_EXISTING "SPWI101.spl" "override"
LPF DELETE_SPELL_HEADER INT_VAR header_type = "-1" min_level = 2 END // delete all headers except the first one

On the other hand, this works:
Code: [Select]
COPY_EXISTING "SPWI101.spl" "override"
LPF DELETE_SPELL_HEADER INT_VAR header_type = "-1" END // delete all headers

I do not see the point of having to set header_type since spells do not differentiate the different header types (i.e. launcher, magical) like items do.

Offline c4_angel

  • Planewalker
  • *****
  • Posts: 30
Re: DELETE_SPELL_HEADER doesn't work if min_level is set
« Reply #1 on: December 04, 2017, 09:42:06 AM »
In my experience, the min_level matches the "Required Level" (offset 0x10 in extended header).

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: DELETE_SPELL_HEADER doesn't work if min_level is set
« Reply #2 on: December 04, 2017, 01:24:46 PM »
min_level = 2 will have the header with the minimum level 2 deleted. As in, the min levels of the headers would go 1, 3, 4, etc., instead of 1, 2, 3, 4, etc.

 

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