Torchmodders

Modding => Modding Questions => Topic started by: gytfunke on November 06, 2014, 07:33:45 am


Title: [Help Request] Consumables Lose Effect on Logout
Post by: gytfunke on November 06, 2014, 07:33:45 am
So, I've got some new consumables that I've made.  On use they apply the effect 'add stat' to the player.  If I spawn them via the console they work correctly.  If I log out, then back into TL2, any items that were still in my inventory no longer work.  Specifically, they're still usable, still get consumed on use, but don't apply their effect.  Here's the item file for one of them:

Code: [Select]
[UNIT]
<STRING>BASEFILE:media/units/items/base.dat
<STRING>NAME:arrows1_loe_gyt
<STRING>RESOURCEDIRECTORY:media/models/items/scroll
<STRING>UNITTYPE:POTION
<INTEGER>RARITY:477
<TRANSLATE>DESCRIPTION:Arrows are necessary for many successful archers.  Use to equip.
<INTEGER>MAXSTACKSIZE:3
<STRING>ICON:icon_weapon_staff17
<STRING>FALL_SOUND:Item Fall
<STRING>LAND_SOUND:STAFFDROP
<INTEGER>MINLEVEL:1
<INTEGER>MAXLEVEL:9999999
<STRING>MESHFILE:scroll
<BOOL>DONT_USE_ON_FULL:true
<TRANSLATE>DISPLAYNAME:Quiver of Arrows
<STRING>TAKE_SOUND:STAFFGET
<STRING>USES:1
<INTEGER>LEVEL:1
<BOOL>SHADOWS:0
<STRING>USE_SOUND:WEAPONSWAP
<INTEGER>VALUE:100
<STRING>UNIT_GUID:7380932563104407265
[EFFECT]
<STRING>NAME:arrows_loe_gyt
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:INSTANT
<STRING>TYPE:ADD STAT
<BOOL>SAVE:true
<BOOL>EXCLUSIVE:true
<FLOAT>MIN:25
<FLOAT>MAX:25
<FLOAT>CHANCE:100
[/EFFECT]
[/UNIT]

I'm hoping someone might know what this is all about.  This is happening for all the new consumables I've made.
Title: Re: [Help Request] Consumables Lose Effect on Logout
Post by: Kva3imoda on November 06, 2014, 07:05:02 pm
I do not know why it does not work. But maybe you could try a different way?
Summon a dummy which will cast the effect you want?
Title: Re: [Help Request] Consumables Lose Effect on Logout
Post by: gytfunke on November 06, 2014, 09:07:54 pm
This... yes.

I will just add dummies.  For everything!   ???
Title: Re: [Help Request] Consumables Lose Effect on Logout
Post by: TwinkleToes on November 06, 2014, 09:13:52 pm
 ??? nooo dont do that for this!

tick the
☑ saves
box on the stat you want to persist on log out
Title: Re: [Help Request] Consumables Lose Effect on Logout
Post by: gytfunke on November 06, 2014, 09:22:50 pm
I already tried that, Twinkle  :(

Anyways, despite the fact that the items should work as is, they're not.  I'm actually thinking I'll try using an Affix instead of an Effect.  If that doesn't work, perhaps a skill...?
Title: Re: [Help Request] Consumables Lose Effect on Logout
Post by: Kva3imoda on November 06, 2014, 09:28:50 pm
I will just add dummies.  For everything!
:D
Title: Re: [Help Request] Consumables Lose Effect on Logout
Post by: TwinkleToes on November 06, 2014, 09:37:50 pm
yea try using an affix
pure effects have tons of bugs associated with them