Please help with triger for spell

Fuin

New Member
Reaction score
0
Hi all
I am bad at writing triggers, and need your help, I need trigger for spell which will do following thing:
Player has hero and this hero has learned skill "Spirit of redemption", when this hero dies trigger should spawn unit for player who was owner of hero. unit spawned by this trigger should last for 30 seconds (for example), and after that time hero which died should be reincarnated with lets say 500 hp and 100 mana (amount may be set as a percent of heroes max life, for example 20% of mana and health).
And one more thing, is it possible to make Healing wave autocast? If yes how?
Thx in advance for help
 

Ph[o]bia

New Member
Reaction score
7
bah the first spell shouldn't be hard but you want it Mui or no?

Edit: for auto cast, it's possible and i could make it to
 

Fuin

New Member
Reaction score
0
I would be thankufull, but what does Mui mean? Ah and one thing there can be multiple heroes using this skill (spirit of redemption) even at the same time so... remember about that
 

Ph[o]bia

New Member
Reaction score
7
I would be thankufull, but what does Mui mean? Ah and one thing there can be multiple heroes using this skill even at the same time so... remember about that

Bah I don't realy know what MUI is but i think its related whit more then 1 unit can cast the spell at same time.

I currently Doing the Spell

Edit: Finished Auto Cast healing Wave.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Multilingual user interface. Meaning multiple units can cast the same spell/ use the same system together.

Edit: Ooooops. Typed the post out and forgot to post. Went to do something else.
 

Fuin

New Member
Reaction score
0
So if Mui means multiple units using skill at the same time, yes, it has to be mui ^^. Thx for help Ph[o]bia +rep for you !
 

jomik

New Member
Reaction score
17
I'm pretty sure MUI is Multi Unit Instance(able) :O Cuz Multilingual User Interface refers to a user interface, and that has nothing to do with having more instances at the same time :p MUI = Multi Unit Instance(able)
MPI = Multi Player Instance(able)
 

jomik

New Member
Reaction score
17
I'll create your first spell in a sec :D

EDIT: What will happen if the replacement unit is skilled before the 30 seconds is up?
 

Fuin

New Member
Reaction score
0
Unit spawned after hero death will be invulnerable, so it won't be killed unitl 30 sec ;P
 

jomik

New Member
Reaction score
17
Here is what you need. You should be able to figure what is what. There should be no leaks, and no reason it's not MPI :D EDIT: If a player has more than 1 hero both will be revive... So it's MPI
Trigger:
  • Replacement
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Level of Spirit of Redemption for (Triggering unit)) Greater than 0
    • Actions
      • Set tempPoint = (Position of (Triggering unit))
      • Unit - Create 1 ReplacementUnit for (Owner of (Triggering unit)) at tempPoint facing Default building facing degrees
      • Unit - Make (Last created unit) Invulnerable
      • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
      • Unit - Set the custom value of (Last created unit) to (Player number of (Owner of (Triggering unit)))
      • Custom script: call RemoveLocation(udg_tempPoint)


Trigger:
  • Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Killing unit) Equal to No unit
      • (Unit-type of (Triggering unit)) Equal to ReplacementUnit
    • Actions
      • Set tempPoint = (Position of (Triggering unit))
      • Set tempGroup = (Units owned by (Player((Custom value of (Triggering unit)))) matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Hero - Instantly revive (Picked unit) at tempPoint, Show revival graphics
      • Custom script: call DestroyGroup(udg_tempGroup)
      • Custom script: call RemoveLocation(udg_tempPoint)


ReplacementUnit is a Unit-type variable with an initial / set value of your replacement.

EDIT: It wont be useable if the player has more than 1 hero. Then both heroes will revive if dead.
 

jomik

New Member
Reaction score
17
Btw, I'm setting a custom value on the replacement units, so you can't use that.
EDIT: Can't figure a MUI version in GUI >.<
 

Fuin

New Member
Reaction score
0
Also I'm concerned about "Unit - Add a 10.00 second Generic expiration timer to (Last created unit)" in my map there is A LOT triggers(well about 20 different units for every player [10 players on map]) that spawn units won't this action accidentaly add this expiration timer to one of these units spawned by other triggers? I don't know how will look correct mui version, just letting you know about this issue
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
The triggers won't cut into each other in a split second.

Create unit
Add expiration timer to last created unit

The time between these 2 actions, or anything in between, like making it invulnerable, is instantly. And if I'm not wrong, triggers won't conflict each other. I think I heard that somewhere, but I don't really know if its true. Anyway, the time is really short. So it should be no problem.
 

Fuin

New Member
Reaction score
0
Good to hear that, i'll test spell for a moment will se what happens :D
How do i do that in editor ?
Code:
Set tempGroup = (Units owned by (Player((Custom value of (Triggering unit)))) matching (((Matching unit) is A Hero) Equal to True))
I've made "matching (((Matching unit) is A Hero) Equal to True))" that part but can't figure out how to set this "(Units owned by (Player((Custom value of (Triggering unit))))"
i'm dumb i guess ;f
 

jomik

New Member
Reaction score
17
search for AND, it's in the bottom part, then you can make 2 conditions which both have to be true :D
 

Fuin

New Member
Reaction score
0
Edit: NVM i messed up condition it works now
Big thx to all who helped me ^^
 

sLsIDK

New Member
Reaction score
13
What was the point of the custom value? The unit created is created for the same player, so when it dies you can just pick every unit in the map matching owner of dieing unit equal to owner of matching unit...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • 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