ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Jan 24, 2021 10:09 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Sep 19, 2020 3:04 pm 
Offline

Joined: Tue Nov 15, 2016 3:00 am
Posts: 3
I've created an addon that allows me to spend gold to raise my mastery level of talent categories. While it's mostly been working, I have noticed that sustains need to be reset after the increase and passives need to have points added or taken away to reflect the new values. Is there a line of code that can refresh all talents, passives and sustains, after the mastery increase?


Top
 Profile  
 
PostPosted: Sat Sep 19, 2020 10:15 pm 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 6152
Code:
self:updateAllTalentsPassives()

Not sure about sustains.

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
PostPosted: Sun Sep 20, 2020 1:17 am 
Offline
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1988
Location: A shallow water area south of Bree
Your best bet would probably be to poke around in the LevelupDialog and see what it does when it closes the dialog and applies the user-specified changes, since that's pretty much the same stuff you'll need to do.

_________________
"Blessed are the yeeks, for they shall inherit Arda..."


Top
 Profile  
 
PostPosted: Fri Oct 02, 2020 5:28 pm 
Offline

Joined: Tue Nov 15, 2016 3:00 am
Posts: 3
Thank you both for the feedback!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group