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.
  • 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
  • Ghan Ghan:
    I added the filter last night.
  • The Helper The Helper:
    They are still there

      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