Jump to content


Photo

An item not getting updated


  • Please log in to reply
4 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 22 January 2018 - 02:59 PM

This is probably something very simple, but I don't have a lot of experience updating items with Weidu. Messing with basilisks' petrifying weapons, I want to put some more effects in their abilities and write:

 

COPY_EXISTING ~BASILG1.ITM~ ~override~
LPF ~ADD_ITEM_EFFECT~ INT_VAR opcode = 146 target = 2 timing = 1 probability1 = 100 probability2 = 0 duration = 0 parameter2 = 1 resist_dispel = 0 save = 4 savebonus = ~-4~ insert_point = ~1~ STR_VAR resource = ~PETALL_#~ END
LPF ~ADD_ITEM_EFFECT~ INT_VAR opcode = 146 target = 2 timing = 1 probability1 = 100 probability2 = 0 duration = 0 parameter2 = 1 resist_dispel = 0 save = 4 savebonus = ~-4~ insert_point = ~2~ STR_VAR resource = ~PETANI_#~ END
BUT_ONLY

 

No error, but no change.



#2 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 22 January 2018 - 04:07 PM

COPY_EXISTING ~BASILG1.ITM~ ~override~
LPF ~ADD_ITEM_EFFECT~ INT_VAR type=2 opcode = 146 target = 2 timing = 1 probability1 = 100 probability2 = 0 duration = 0 parameter2 = 1 resist_dispel = 0 savingthrow = 4 savebonus = ~-4~ insert_point = ~1~ STR_VAR resource = ~PETALL_#~ END
LPF ~ADD_ITEM_EFFECT~ INT_VAR type=2 opcode = 146 target = 2 timing = 1 probability1 = 100 probability2 = 0 duration = 0 parameter2 = 1 resist_dispel = 0 savingthrow = 4 savebonus = ~-4~ insert_point = ~2~ STR_VAR resource = ~PETANI_#~ END
BUT_ONLY

ADD_ITEM_EFFECT is a little pricky, it only updates magic type abilities by default, but not melee/ranged:

SET type to the type of header to which the effect should be added or 99 for all types. Defaults to 3 (magic).

 

Also it should be "savingthrow" rather than "save"


Edited by GeN1e, 22 January 2018 - 04:07 PM.

Retired from modding.


#3 temnix

temnix
  • Member
  • 983 posts

Posted 24 January 2018 - 12:00 PM

So... How do I make it update Ranged?

 

And thanks for telling me that about "save." Could have missed a bunch of saves writing it wrong.



#4 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 24 January 2018 - 12:41 PM

type=1 // melee

type=2 // ranged

type=3 // magic (default)

type=4 // launcher with ammo

type=99 // all


Retired from modding.


#5 temnix

temnix
  • Member
  • 983 posts

Posted 26 January 2018 - 12:03 PM

Okay. Missed that part.