Is this possible?

Help and support for TorchED, the Torchlight editor.

Is this possible?

Postby rking12345678 » Mon Jan 25, 2010 3:43 pm

If I were to make a potion that (for example) raised attack speed by 10% for 30 seconds, is there a way to prevent another "speed potion" (example effect from test potion item file):

[EFFECT]
<STRING>NAME:ATTACKSPEEDUP
<STRING>ACTIVATION:DYNAMIC
<STRING>DURATION:30
<STRING>TYPE:PERCENT ATTACK SPEED
<FLOAT>MIN:10
<FLOAT>MAX:10
[/EFFECT]


from being used for 30 seconds so that it's not possible to stack the effects? What would I have to add, and where to, for this to work? Would I be better off trying to create a spell that does what I want then making a potion which, when used, has the effect of that spell? Thanks for any help.
rking12345678
 
Posts: 119
Joined: Sat Jan 02, 2010 9:39 am

Re: Is this possible?

Postby MattNguyen » Mon Jan 25, 2010 7:24 pm

There is a property "Exclusive" that you want to be true. This prevents stacking of effects, however i believe it will reset the duration to 30.

Note that this makes it unstackable with any effect with the same 'Name'
MattNguyen
 
Posts: 87
Joined: Mon Oct 26, 2009 10:07 pm

Re: Is this possible?

Postby rking12345678 » Tue Jan 26, 2010 12:49 am

I'll have to remember that when I go back to work trying to figure that out, thanks for the info.
rking12345678
 
Posts: 119
Joined: Sat Jan 02, 2010 9:39 am


Return to TorchED Help and Support

Who is online

Users browsing this forum: No registered users and 1 guest