Item wont trigger Attribute Modifier Toggle

Stroopwafel

New member
I have a CharacterItem thats a soda can, and with a UsableAction it triggers a drinking animation and some sounds. That all works splendid. But now when I want to add an Use Attribute Modifier Toggle to decrease the volume whats left in the can with each sip: it doesnt trigger the attribute change.

Only when I set the "Can Stop If Input Stop" boolean but then only after each use (so not every use), and then the animation will just keep triggering itself. (I dont really know what that boolean does...)

I must be missing something small here...

1757103993178.png
1757104005429.png
 
Hi, I'm not sure what you mean by ""Can Stop If Input Stop" boolean", could you highlight it in a screenshot ?

I took a quick look and it worked on my side with a rudimentary object without animation, could you uncheck the WaitForAnimationEvent bools (check the attached file) and tell us if that changes anything ? If yes you might have an animation setup problem.
 

Attachments

  • WaitForAnimationEvent.png
    WaitForAnimationEvent.png
    566.1 KB · Views: 3
The Can Stop If Input Stop is under the Trigger Action Module Group with a simple module (see attachment), would still like to know what it does, the description is a bit cryptic :D .

But you were correct, it was an animation issue. I had two transitions to the animation (I copied them from the sword animation I believe), one didnt have the Slot0ItemStateIndexChange so it just kept triggering again and again. Removed that one and it worked.

Now I got to figure out why it doesnt trigger the attribute change every time, only every second time. Hehe, fix one bug, two bugs pop up eh?

Thanks for the help!

1757149415442.png
 
Glad this was helpful ! The reason why the attribute is affected one time out of two is because as written in the name, it’s a toggle. In the demo scene this module is used by the flashlight, which makes perfect sense in this context. I’m not on my laptop right now and can’t check the full list of modules, but if there isn’t one to affect an attribute every time you’ll have to write it. It shouldn’t be complicated, you can copy the content of the toggle module and remove all of the logic related to toggling.

One last thing, since we’re talking about usable items I made this tutorial about 2 years ago, maybe it’ll still be useful !

 
Back
Top