Making it MUI: Problem with a Barrage-Type spell

Ouguiya

New Member
Reaction score
11
Hello everyone!

As you probably all know, barrage is a really cool ability, which enables a multishot to hit several units.

In terms of balance however, there is one problem: The ability is passive (no mana required) and permanent, which are both not really good when using this as a hero ability.

My thought to this was: Why not make a dummy-spell, which, when activated, adds the "barrage"-ability, and then, after a certain time, removes it again.

The problem is that, in singleplayer, when testing the map, this works great. The spell is used, the trigger is activated, the barrage is added, the trigger waits a certain time, then removes it again.

In Multiplayer this doesn't work however.

Now, i read somewhere that the spell is MUI, even with waits, as long as the trigger uses only "Event Response - Casting unit" and "Triggering player" and such, because the variables stay in place.


The trigger I have constructed keeps to that principle, but what happens is that the spell is added, but not removed. Here is the trigger for further reference:

Trigger:
  • Multiaxe
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Testunit445
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Multishot (Dummy)
        • Then - Actions
          • Unit - Add Multishot to (Casting unit)
          • Unit - Set level of Multishot for (Casting unit) to (Level of (Ability being cast) for (Casting unit))
          • Wait 30.00 seconds
          • Unit - Remove Multishot from (Casting unit)
        • Else - Actions
          • Do nothing


I hope somebody knows what went wrong here, or can point me in the direction of an alternative.

Thanks a lot in advance!

Yours,

Ouguiya
 

Faust

You can change this now in User CP.
Reaction score
123
there is no casting unit after a wait... Just use triggering unit. And yeah it's not mui.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Make all Casting Units Triggering Unit
 

Ouguiya

New Member
Reaction score
11
Hello all!

Thanks for the replies and sorry for the late answer.

Will "triggering unit" make it MUI then?

Thanks!

Yours,

Ouguiya
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
No it wil make it more eficiant to make it MUI u need to use arrays and save the number
 

Ayanami

칼리
Reaction score
288
This will make it MUI.

Trigger:
  • Multiaxe
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Animate Dead
          • (Unit-type of (Triggering unit)) Equal to Testunit445
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CustomValue Less than 10
        • Then - Actions
          • Set CustomValue = (CustomValue + 1)
        • Else - Actions
          • Set CustomValue = 1
      • Set Caster[CustomValue] = (Triggering unit)
      • Set Timer[CustomValue] = 30
      • Unit - Add Multishot to Caster[CustomValue]
      • Unit - Set level of Multishot for Caster[CustomValue] to (Level of (Ability being cast) for Caster[CustomValue])
      • Set TempPoint = (Center of (Playable map area))
      • Unit - Create 1 Dummy for (Owner of Caster[CustomValue]) at TempPoint facing Default building facing degrees
      • Unit - Set the custom value of (Last created unit) to CustomValue
      • Unit Group - Add (Last created unit) to DummyGroup
      • Custom script: call RemoveLocation(udg_TempPoint)


Trigger:
  • Multiaxe Periodic
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (DummyGroup is empty) Equal to False
    • Actions
      • Unit Group - Pick every unit in DummyGroup and do (Actions)
        • Loop - Actions
          • Set TempInt = (Custom value of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Timer[TempInt] Less than or equal to 0
            • Then - Actions
              • Unit - Remove Multishot from Caster[TempInt]
              • Unit - Remove (Picked unit) from the game
            • Else - Actions
              • Set Timer[TempInt] = (Timer[TempInt] - 1)


Variables
Caster - Unit (Array 10)
CustomValue - Integer
DummyGroup - Unit Group
TempInt - Integer
TempPoint - Point
Timer - Integer (Array 10)

The Dummy is a no-model unit with the Locust ability. It's just a unit to get back the Custom Value. This basically enables a lot of people to use the skill at the same time.
 

Ouguiya

New Member
Reaction score
11
Hi there again!

Wow, an incredibly comprehensive trigger! Thanks a lot! (+rep)

There is just one thing I don't understand: Why is the trigger with the event response not MUI? According to this tutorial (here on thehelper): http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=51725 , Event Responsed units, even after waits, are MUI, to quote:

"All unit event responses are MUI and you can refer to the these responses even after long waits."

I have to admit that I myself understand very little of spell-triggering, making something MUI or scripting, I simply want to understand the dissonance here.

Thanks again!

Yours,

Ouguiya
 

Ouguiya

New Member
Reaction score
11
Bump

Please... can anybody explain this, it would be very nice.

Thanks in advance.

Yours,

Ouguiya
 

wellwish3r

wishes wells.
Reaction score
52
they were talking bananas, use (Triggering Unit) and its MUI, no matter how long the wait is.

Btw, the "Do Nothing" action is unnecessary, just leave the "then" actions blank

JASS:
function DoNothing takes nothing returns nothing
endfunction


probably the most pointless thing known to man.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top