Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: Galactygon on December 03, 2017, 11:15:16 AM

Title: DELETE_SPELL_HEADER doesn't work if min_level is set
Post by: Galactygon 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.
Title: Re: DELETE_SPELL_HEADER doesn't work if min_level is set
Post by: c4_angel on December 04, 2017, 09:42:06 AM
In my experience, the min_level matches the "Required Level" (offset 0x10 in extended header).
Title: Re: DELETE_SPELL_HEADER doesn't work if min_level is set
Post by: Wisp 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.