Timed Unit Evolution

mirrorman1de

Cool Member
Reaction score
4
I would like to create a skill that summons a unit which evolves through multiple states of development.

lets say it starts as an egg, after 20 seconds it becomes a dragon whelp, after another 20 seconds it becomes a level 6 dragon, and after that it becomes a lvl 10 dragon.

what is important is that the unit only evolves if it is alive. so, spawn on death (like hydra/spiderling) is an inappropriate mechanism.

phoenix morph has a nice timer bar, but it plays the death animation on the current unit and the new unit is invisible, at least in my test trials, maybe because some animations are required that are not comprised in the model.

has anyone any ideas on how to solve this?
 

Samael88

Evil always finds a way
Reaction score
181
Code:
Event
    Unit enters region(Entire map)
Conditions
    type of Entering unit equal to dragon whelp
Actions
    Wait 20 seconds
    if entering unit is alive//Boolean condition
    then
        Remove entering unit
        Create new unit.
    Else
        Don't put anything here, unless you want's something to happen.

That should work fine.
Make one of those for every unit-type.

You may need to change the entering unit into triggering unit, I am not sure.
But it should be MUI:)
 

mirrorman1de

Cool Member
Reaction score
4
as far as i see this trigger works only if there is only one unit of each type exisiting in the game at the same time.

because auf the wait function, i need to store the unit in a variable which gets overwritten every time the event triggers (as is 'entering unit')
 

shadowcon

New Member
Reaction score
4
I don't think WE likes variables before the actions, I can be wrong

and triggering unit is in that case entering unit. And I don't think "entering unit" exist
 

Flare

Stops copies me!
Reaction score
662
as far as i see this trigger works only if there is only one unit of each type exisiting in the game at the same time.

because auf the wait function, i need to store the unit in a variable which gets overwritten every time the event triggers (as is 'entering unit')
Change to Triggering Unit, and it should be MUI (unless there is something else which doesn't like waits in that trigger :p)

I don't think WE likes pre-actions variable, I can be wrong

and triggering unit is in that case entering unit. And I don't think "entering unit" exist
1) What?
2) Entering unit does exist (and, in this case, functions in precisely the same way) - only questionable thing would be the MUI capabilities of Entering Unit
 

vypur85

Hibernate
Reaction score
803
Use Expiration timer. Give them 20 seconds life time when created.

Then trigger the evolution:

Code:
Event
 A unit dies
Condition
 (Killing unit) Equal to (No unit)
 Unit-type of (Triggering unit) Equal to Egg
Actions
 Unit - Create 1 Dragon Whelp for someone at somewhere....
 Unit - Set life, mana and all...
 Unit - Remove (Triggering unit) from the game

Do this for all of your other unit-types.
 

shadowcon

New Member
Reaction score
4
1) I think WE don't like variables being used in event etc, I think I can remember testing it a couple of months ago. Correct me if I'm wrong.
2) ok, I didn't know, anyway, how COULD it function otherwise? because it is event response huh?
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
store all the dragons into unit array variable
then create a trigger:

Code:
Evolving trigger
e: every 20 seconds of game time
c:
a: set count_integer = integer
   set integer = integer + 1
   replace unit[count_integer) with unit[integer] using blabla....

and another trigger:

Code:
Turn on/off
e: unit dies
c:
a: for each (Integer A) from 1 to (number of dragons you have)
   Loop Actions
      if unit type of dying unit equal to unit[Integer A]
      then Turn off evolving trigger
  wait x seconds
  turn on Evolving trigger
 

vypur85

Hibernate
Reaction score
803
> how COULD it function otherwise?

Try this yourself and see the difference:

Code:
Event
 A unit Starts the effect of an ability
Condition
Actions
 Wait 10 seconds
 Unit - Kill (Casting unit)

Give Warstomp to 2 units in your map. Then order them to cast within 10 seconds. See any unit would die or not.

Now change to this:
Code:
Event
 A unit Starts the effect of an ability
Condition
Actions
 Wait 10 seconds
 Unit - Kill ([B]Triggering unit[/B])

Do the same thing. See any of the unit dies or not.

Anyway, the point is, Triggering unit is always MUI, even with waits. But this might not be true for others. Example: 'Attacked unit', 'Entering unit'... etc. This was what he meant.
 

shadowcon

New Member
Reaction score
4
I meant how could entering and triggering unit be different, I knowthat wait removes, casting unit, attacked unit etc, was one of the first things my cousin told me when he taught me about the world editor
 
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

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top