News:

SMFNew Installed

+-+-

User+-

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

Site Stats+-

Members
Total Members: 728
Latest: Cho
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 10932
Total Topics: 795
Most Online Today: 389
Most Online Ever: 854
(September 18, 2024, 07:49:37 am)
Users Online
Members: 0
Guests: 304
Total: 304

Author Topic: [Help Request] Consumables Lose Effect on Logout  (Read 1270 times)

0 Members and 127 Guests are viewing this topic.

[Help Request] Consumables Lose Effect on Logout
« on: »
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.

Share on Bluesky Share on Facebook


Re: [Help Request] Consumables Lose Effect on Logout
« Reply #1 on: »
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?

Re: [Help Request] Consumables Lose Effect on Logout
« Reply #2 on: »
This... yes.

I will just add dummies.  For everything!   ???

Re: [Help Request] Consumables Lose Effect on Logout
« Reply #3 on: »
 ??? nooo dont do that for this!

tick the
☑ saves
box on the stat you want to persist on log out

Re: [Help Request] Consumables Lose Effect on Logout
« Reply #4 on: »
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...?

Re: [Help Request] Consumables Lose Effect on Logout
« Reply #5 on: »
I will just add dummies.  For everything!
:D

Re: [Help Request] Consumables Lose Effect on Logout
« Reply #6 on: »
yea try using an affix
pure effects have tons of bugs associated with them

 

Recent Topics+-