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: 186
Total: 186

Author Topic: Potion effect [help]  (Read 2401 times)

0 Members and 72 Guests are viewing this topic.

Potion effect [help]
« on: »
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)
« Last Edit: May 18, 2015, 11:20:51 pm by Kevin »

Share on Bluesky Share on Facebook


Re: Potion effect [help]
« Reply #1 on: »
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.

Re: Potion effect [help]
« Reply #2 on: »
Is that in .dat format? I'm pretty new with this. This is from the .dat file of it.


Spoiler (hover to show)
« Last Edit: May 19, 2015, 04:49:43 am by Kevin »

Re: Potion effect [help]
« Reply #3 on: »
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...
« Last Edit: May 19, 2015, 06:30:11 am by Phanjam »


Re: Potion effect [help]
« Reply #4 on: »
I kinda fixed the stacking part by adding "<BOOL>DONT_USE_ON_FULL:true".
BUT, 1 out of 3 effects are only running.

Re: Potion effect [help]
« Reply #5 on: »
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.


Re: Potion effect [help]
« Reply #6 on: »
So, you mean I should make an affix exclusive to the potion?

Re: Potion effect [help]
« Reply #7 on: »
Yessiree


Re: Potion effect [help]
« Reply #8 on: »
I tried it now. It still takes 1 out of 3 effects out of the affix I made or I did something wrong.
« Last Edit: May 19, 2015, 09:16:56 am by Scythe0fDeath »

 

Recent Topics+-