View Single Post
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old May 17th, 2016, 10:53 AM
Quote:
Originally Posted by TobyFox2002 View Post
Wut? I considered trying to do something like that, but I didnt think it would be possible. I don't even know where to begin.
Create a class special called "Spheres" or whatever, then add this eval script

The script needs to run before the domains push their tags to the class helper, which is in "Set Domain Name" at PreLevel 10000, so we can set our timing at PreLevel 5000 for this eval script
Code:
~ PreLevel is too early to do the normal "are we too low level" stop, but there is a standard workaround for that using the foctoclass procedure
call foctoclass

doneif (state.isfocus = 0)

doneif (focus.field[cTotalLev].value < tagvalue[ClSpecWhen.?])

~ Do our usual stop if disabled
doneif (tagis[Helper.SpcDisable] <> 0)

~ Foreach through all domains on the hero which have been added to our Mystic Class. I am assuming the unique ID for this class is cHelpMys
foreach pick in hero from BaseClrDom where "CustTaken.cHelpMys"
  ~ pull the Domain Spell tags (ClsScAllSp) from the current domain to this class special, changing their tag group to ClsAllowSp at the same time
  perform eachpick.pulltags[ClsScAllSp.?,ClsAllowSp]

  ~ Now delete them from the domain we just pulled from
  perform eachpick.delete[ClsScAllSp.?]
  nexteach

~ Now we just need to get the tags we pulled from ourselves to the class helper. We already set the focus to the class helper earlier, so we can just use that as a shorthand
perform focus.pushtags[ClsAllowSp.?]
As usual, code not tested, tweak as necessary.
Aaron is offline   #40 Reply With Quote