zetake Posted July 18, 2019 Share Posted July 18, 2019 Hi, can you tell me every negative effect there's in game, and how to trigger every single one of them by item or owner? My idea, when you held item it will keep triggering one random effect per random period of time. Link to comment https://forums.kleientertainment.com/forums/topic/109018-negative-effects/ Share on other sites More sharing options...
Ultroman Posted July 18, 2019 Share Posted July 18, 2019 Not really. But most such negative effects are pretty easy to code. The effects on items can't be "triggered" without the item being that item. You'd have to copy the code from it, and trigger it within your own item. So, basically make a bunch of functions which apply a certain effect on the inst.components.inventoryitem.owner, and make sure the effects get removed again after some time. You'd probably just want to make the item's onequip call a function, StartNegativeEffect, which first stops any of your currently running custom negative effects, and then calls a random one of your effect functions, and then start a DoTaskInTime which calls StartNegativeEffect again after a while. You'd have to do something in onunequip, as well, where you stop the currently running effect. There are many way to do this kind of thing. Link to comment https://forums.kleientertainment.com/forums/topic/109018-negative-effects/#findComment-1227859 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now