Torchmodders

Modding => Modding Questions => Topic started by: Scythe0fDeath on May 18, 2015, 11:14:56 pm


Title: Potion effect [help]
Post by: Scythe0fDeath on May 18, 2015, 11:14:56 pm
I'm making a new potion, but the effect stacks when consumed another. The item shouldn't be consumed because it's still in effect and the effect shouldn't stack.

 Here are the pictures:

Spoiler (hover to show)
Title: Re: Potion effect [help]
Post by: Wolven on May 18, 2015, 11:44:12 pm
Hi, Kevin. Welcome to TorchModders.

Post all the code for the potion you've created, so we can have a look at what's going on.
Title: Re: Potion effect [help]
Post by: Scythe0fDeath on May 19, 2015, 12:01:45 am
Is that in .dat format? I'm pretty new with this. This is from the .dat file of it.


Spoiler (hover to show)
Title: Re: Potion effect [help]
Post by: Phanjam on May 19, 2015, 06:21:05 am
Hiyya Kevin and welcome!

Hmm my opinion is that maybe you want to apply the effect via an affix rather than directly in the .DAT like that.

Reason being that affixes can be started by putting them in an [AFFIXES] section, and can be turned off by putting them in an [AFFIXESREMOVE] section.

So you start out with [AFFIXESREMOVE]  to remove any previously running incidences of your affix, then [AFFIXES] after that, to kick off a current incidence of your affix.

For constructing the actual affix, try copying an existing affix then substituting your effects inside of it.

EDIT: Gyt made a great tutorial on affixes here (http://torchmodders.com/wiki/doku.php?id=affixes_and_effects_-_the_basics)...
Title: Re: Potion effect [help]
Post by: Scythe0fDeath on May 19, 2015, 06:44:39 am
I kinda fixed the stacking part by adding "<BOOL>DONT_USE_ON_FULL:true".
BUT, 1 out of 3 effects are only running.
Title: Re: Potion effect [help]
Post by: Phanjam on May 19, 2015, 07:06:43 am
Hey Scythe, it's you!  Welcome to Torchmodders :D

If you have all those effects inside one affix, then the method I described would turn them all on and off at the same time.
Title: Re: Potion effect [help]
Post by: Scythe0fDeath on May 19, 2015, 07:54:07 am
So, you mean I should make an affix exclusive to the potion?
Title: Re: Potion effect [help]
Post by: Phanjam on May 19, 2015, 08:00:09 am
Yessiree
Title: Re: Potion effect [help]
Post by: Scythe0fDeath on May 19, 2015, 08:25:19 am
I tried it now. It still takes 1 out of 3 effects out of the affix I made or I did something wrong.