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
  • 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 The Helper:
    I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
  • The Helper The Helper:
    Happy Wednesday!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    Sticking with the desserts for now the latest recipe is Fried Apple Pies - https://www.thehelper.net/threads/recipe-fried-apple-pies.194297/
  • The Helper The Helper:
    Finally finding about some of the bots that are flooding the users online - bytespider apparently is a huge offender here - ignores robots.txt and comes in from a ton of different IPs
  • Monovertex Monovertex:
    @The Helper I'm really not seeing the "Signature" link in the sidebar on that page. Here's a screenshot:
  • The Helper The Helper:
    I have reported it - I was wondering why nobody I have given sigs to over the last few years have used them
  • The Helper The Helper:
    Ghan has said he has fixed this. Monovertex please confirm this fix. This was only a problem with people that had signatures in the upper levels like not the special members but the respected members.
  • The Helper The Helper:
    Here is a better place to manage this stuff https://www.thehelper.net/account/account-details which I think should be way more visible
  • The Helper The Helper:
    I am hoping that online user count drop is finally that TikTok bot banned

      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