Variable Duration

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
Post Reply
User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Variable Duration

Post by Gangrenous » Tue May 07, 2019 9:38 am

Anyone know a way to change the duration of a spell to be variable by level? If not, what is the difference between duration1 and duration2?
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Variable Duration

Post by Jabantiz » Tue May 07, 2019 12:20 pm

It has been a while since I looked at spell code but I believe duration1 and duration2 is a min/max duration and the duration is random between those values.

As for making it variable by level you would need to add code to the spellprocess file to change duration for that.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Variable Duration

Post by Gangrenous » Tue May 07, 2019 12:55 pm

Thanks for clearing that up. I figured that duration1 was minimum and duration2 maximum, but I was not positive.
Resident Dirty Hippy

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: Variable Duration

Post by Ememjr » Tue May 07, 2019 2:32 pm

is there a current spell that has a dynamic duration based on level, or is that for a custom spell

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Variable Duration

Post by Gangrenous » Tue May 07, 2019 3:46 pm

Custom
Resident Dirty Hippy

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: Variable Duration

Post by Ememjr » Tue May 07, 2019 4:03 pm

ok thanks, just checking just in case its something that needed coded to support

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Variable Duration

Post by Gangrenous » Tue May 07, 2019 5:22 pm

Not that I know of. I am going to look at food consumption tomorrow, I cannot remember if that is implemented, but I need it to be. Overall, yeah I do want variable duration based on level but it is high hanging fruit.
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Variable Duration

Post by Jabantiz » Tue May 07, 2019 6:08 pm

Gangrenous wrote: Tue May 07, 2019 5:22 pm I am going to look at food consumption tomorrow, I cannot remember if that is implemented,
Yes I believe it was it just requires an item script on the food/drink.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Variable Duration

Post by Gangrenous » Tue May 07, 2019 7:06 pm

Coolio
Resident Dirty Hippy

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests