Multiple issues with Night Elf structures

KILLJAW

New Member
Reaction score
0
Multiple issues with my trigger & upgrading buildings

Hi, I'm making a map, and to start out you have the option of choosing what race you want, humans, orcs, night elves and undead. You start with a building and use it to train the relevant unit (this is the process by which players will pick their race), and then the building is replaced, upon completion of the unit, by the tier 1 town hall structure for the chosen race (town hall, tree of life, etc.). Each player also starts out with a generic scout tower, which is replaced by the relevant defense tower (guard tower, watch tower, ancient guardian...).

This whole process works fine with every race except for the blasted night elves. There are a couple of issues I've been having: The first is that the editor would replace the initial building with 2 trees of life instead of just one, the second issue is the buildings would not root (stay fixed as buildings) and would instead be movable like any other unit, and the third is that when I upgrade the tree of life to the tree of ages, it upgrades the building, but it still looks like the tree of life (the model doesn't change).

The first issue I managed to resolve by having the game select a copy at random from those created and remove the copy from the game (thus leaving 1 tree of life and not 2), but I would still like to know the cause if anyone knows it, so as to more elegantly fix or avoid it in the future. [Edit: I discovered the cause to be an error with the replace function; whenever I replace something it creates 2 copies of the new object/unit. :(] The second problem I managed to fix on the tree of life by having the game order it to root at its position, but I tried the same thing for the ancient protector, and it doesn't work. The third issue is entirely unresolved. I've attached a screenshot of the trigger in question; if you need any more information just ask and I will provide it.



Any help anyone can provide here would be highly appreciated :cool:.
 

Inflicted

Currently inactive
Reaction score
63
post your triggers please.

the second issue is the buildings would not root (stay fixed as buildings) and would instead be movable like any other unit

try checking the following:
Is Building - True
Movement Type - None

and the third is that when I upgrade the tree of life to the tree of ages, it upgrades the building, but it still looks like the tree of life (the model doesn't change).

um swi i need to see it more, and the computer im on now has blocked the picture.
 

KILLJAW

New Member
Reaction score
0
Thank you for the reply, here is a link to the trigger image. As far as the second issue, it is a building and its movement type is set to none, and yet it still will move when ordered to.

For upgrading the tree of life, I used the upgrade function in the object editor, the same way as it would work in a regular, non-custom game. Perhaps the issue is with the models, since it uses the same "model" for each one, i.e. its listed as Tree of Life, Tree of Ages, Tree of Eternity as the model?
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
first of all, your triggers are kinda messy, this:
Trigger:
  • Unit - Replace (Triggering Unit) with a Tree Of Life using ...

could be removed by using chaos, and most probably you wouldnt need to order it to root at all.
and thus the point variable wouldnt be needed as well.

then the next lines do not even make any sense...
at least if you showed us everything of that trigger.
Trigger:
  • Unit Group - Add (Last created unit) to temp_unitgroup

there is not (last created unit) in your trigger. Oo
Trigger:
  • Unit - Remove (Random unit from temp_unitgroup) from the game

is nonsense cause you pretty much know the only unit inside would be the (last created unit) and that one isnt there.

then next:
Trigger:
  • Unit Group - Pick all units in (Units owned by (Player((IntegerA))) of type...

1). leaks
2). could be done easily with chaos either.


and please, for your next question, copy your triggers as text, i can imagine many people here didnt replied because writing all your triggers by hand is hard of a job for lazy people like us.
 

KILLJAW

New Member
Reaction score
0
Ah, thanks so much for replying. I'll apologize for the bad format, I didn't realize it would make things difficult in my using a screen shot, I'll remember that next time.

It sounds like using chaos is the most efficient way of doing what I'm trying to do, by what you've suggested, but I'm afraid I don't understand exactly how to do that. Forgive my ignorance, but what exactly does it do? I looked it up in the object editor in unit abilities, and there weren't any tooltip explanations. How would I apply chaos to replace the unit?

As for the "last created unit" issue, it says "last replaced unit" in the trigger, I apologize if it was difficult to see in the picture. I also understand how it would look as though it was a redundant set of actions in the trigger, but an unusual bug was appearing when I used the replace action which, for some reason, would replace the original unit with two of the new unit, instead of just replacing the original unit with one new unit. There seems to be no reason for this to happen, but it did, and so by removing a random unit from the unit group "last replaced unit," it removed 1 of those 2 units created. There were actually 2 units in the unit group "last replaced unit," at least that's how it appeared to me.

It seems that using chaos as you suggested should solve all of these issues anyway, so you can you elaborate on how you would recommend using it?
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
chaos is a passive ability which transforms one units unit type to an other.

maybe you remember the RoC orc campaign when grom hellscreams orcs where fighting in ashenvale against cenarius, they turned to chaos orcs there. this was made with the chaos ability.

same for the troll headhunters, they have been given the chaos ability to turn into troll berserkers after researching the corresponding upgrade.

you can give the chaos ability to a unit by default and set a techtree requirement for the chaos ability. when this requirement is met the unit will transform into the new unit type. the great advantage is that the unit will keep items, experience, hitpoints, mana, hero proper name, attributes, and even variables which point to it.
 

KILLJAW

New Member
Reaction score
0
Ah, wow, yeah that definitely makes things easier, thank you. I'll implement it asap. :)
 
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