ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Wed Oct 17, 2018 8:45 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Sep 23, 2018 11:40 pm 
Offline
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1562
Location: A shallow water area south of Bree
Been pfutzing around with a Cultist of Entropy character recently, out of morbid curiosity. Beyond being sorely tempted to write an addon to make the Herald of Oblivion a direct summon, :twisted: the most obvious minor annoyance so far is juggling the prophecy-related summons, Grand Oration, Twofold Curse and Revelation. Notably, of course, having to manually "bounce" them every time you level up, but also that the only way to change the prophecy associated with each one is to deactivate and reactivate it.

To improve on that, I whipped up my new Prophecy Management addon, which adds the eponymous Prophecy Management talent, learned automatically when you learn Prophecy. The main purpose of the Prophecy Management talent is to access the Prophecy Management Dialog:

Attachment:
prophecy-dialog.jpg
prophecy-dialog.jpg [ 185.31 KiB | Viewed 162 times ]


via which you can set the prophecies for all three sustains at once. Once you've set the prophecy for a sustain via this dialog, the sustain will automatically use that prophecy when you reactivate it, and the levelup dialog will "bounce" the sustain for you automatically. In addition, changing the prophecy associated with an active sustain via this dialog will take effect immediately, without having to deactivate and reactivate the sustain. You can assign prophecies to sustains you don't know yet, as a convenience (and to make coding easier), but you can't assign prophecies you don't know yet to sustains. We also catch and remember prophecies selected via each sustain's individual dialogs.

[One small potentially detrimental side effect of all this: the game currently goes to some effort to prevent the prophecy-related sustains from being deactivated by the Weirdling Beast or other effect-canceling talents (the code notes, "Having these dispelled is very annoying as you have to remember and repick all your settings"). Setting a remembered prophecy for a sustain has the side effect of removing that protection, so that the WB can knock out your Grand Oration. We Apologize for the Inconvenience.™]

[Technical notes:]
Code:
Hooks
  ToME:load [load our new talent and modify existing prophecy-related talents]
  ToME:run [further modification of prophecy-related talents]
Superload:
  mod.class.Actor:
    postUseTalent() [note prophecies chosen via the original sustain dialogs]

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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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