Would this be MUI? not sure how locals work...

afisakov

You can change this now in User CP.
Reaction score
37
The idea of this trigger is when you activate bankai (based off metamorph), one of your hero abilities "upgrades" temporarily to a stronger form. Thus I replace and replace back afterwards. The normal hero only has A0VA, the meta form only has A0VJ. Either should be able to up ability level and it would carry over in switch back.
Code:
function Trig_bankai_Conditions takes nothing returns boolean
    return (GetSpellAbilityId()=='A0VG')
endfunction
function Trig_bankai_Actions takes nothing returns nothing
    local integer bct=3+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
    set udg_units01[bct]=GetTriggerUnit()
    call UnitAddAbility(udg_units01[bct],'A0VJ')
    call SetUnitAbilityLevel(udg_units01[bct],'A0VJ',GetUnitAbilityLevel(udg_units01[bct],'A0VA'))
    call UnitRemoveAbility(udg_units01[bct],'A0VA')
    call TriggerSleepAction(30.)
    call UnitAddAbility(udg_units01[bct],'A0VA')
    call SetUnitAbilityLevel(udg_units01[bct],'A0VA',GetUnitAbilityLevel(udg_units01[bct],'A0VJ'))
    call UnitRemoveAbility(udg_units01[bct],'A0VJ')
    set udg_units01[bct]=null
endfunction
ask if it is MUI because I heard people mention that locals stay inside the trigger, so hopefully if another player uses they would get a different bct, and only the correct hero would get abilities changed back. Not sure if this is really the case.

If it doesn't work MUI can you suggest how to fix?

Thank you
 
add engineering upgrade with modifier of skill to morphed unit and remove it afterwards. it will keep level and cd without any code.
guess ur version is legit, but sleep is very bad
 
It can be MUI if the spell is instant (Without any timers/TriggerSleepActions).
It does not matter if you use globals in instant spells as Warcraft 3 runs on single thread.
So, replace the udg_units01[bct] with a local, then you are good to go.
 
add engineering upgrade with modifier of skill to morphed unit and remove it afterwards. it will keep level and cd without any code.
guess ur version is legit, but sleep is very bad
I tried to use engineering upgrade already. I had it assigned as a normal ability of the unit that get metamorphed into. It replaced fine during the transformation, but the ability went away upon changing back.
i.e. getsuga upgraded to getsuga2 properly, but once bankai ran out neither getsuga nor getsuga2 remained, but the skill points where still used up.
That is why I went with a trigger instead.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/
  • The Helper The Helper:
    Happy Thursday!
  • Ghan Ghan:
    I'm not so sure, there's still a lot of Thursday left for it to become unhappy.
    +3
  • The Helper The Helper:
    still a few hours
  • The Helper The Helper:
    Its Friday!!!!
    +1
  • Ghan Ghan:
    Thursday 7/10 would Thursday again
    +3

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top