Travelling Merchant

D

Deviant Sin

Guest
*Light-Bulb Effect*

What I was thinking is that you could make this into a multi-trigger function.

A: Every 30 seconds
C:
E: Move "Unit(Preset Merchant)" instantly to "Region1"

A: Every 50 Seconds
C:
E: Move "Unit(Preset Merchant)" instantly to "Region2"

A: Every 80 Seconds
C:
E: Move "Unit(Preset Merchant)" instantly to "Region3"

Something like that, You'd have to figure out what time variables to use to give desired effect but, in theory, this should work. 30 seconds pass, he moves to R1. 50 seconds pass, he moves to R2. 10 seconds after that, he'd move back to R1. 20 seconds later he'd move to R3.
Catch my drift? This simulates a somewhat random effect to the problem.
 

DM Cross

You want to see a magic trick?
Reaction score
568
Um, thanks deviant, but i've already gotten that problem solved...however, the current problem is the following:
The merchant sells 5 artifacts
i want these 5 artifacts to be part of a set
if a hero owns all 5, he turns into the 'avatar' a very strong hero

However, it isn't working too well, as I can't get the goddamned thing to transform into the avatar!
 
D

Deviant Sin

Guest
Hrm.... :) Sorry I couldn't come up with the solution to the moving of the merchant before but, I've got alot on my plate playing with the triggers in my map :D . I'll work on your problem some more soon.
 

DM Cross

You want to see a magic trick?
Reaction score
568
Bumping this up because I don't want to have to go looking for it, I still need my question answered, and because it's getting off the page...

So bump bump bump

Alexander

_-_Edit-_-

Yay, 100+ posts! Woo, go me! ... Yeah, alright, I'm done -.- Stop looking at me like that!
 

Rinpun

Ex TH Member
Reaction score
105
SilverHawk said:
You can't say triggering unit, because it refers to the triggering unit of an event, which you don't have. I would rewrite it like this:

E:
Unit acquires an item.
C:
Triggering unit has item of type <armor piece 1>
Triggering unit has item of type <armor piece 2>
Triggering unit has item of type <armor piece 3>
Triggering unit has item of type <armor piece 4>
Triggering unit has item of type <armor piece 5>
A:
Replace triggering unit with Avatar.

This should work, just remember to put those conditions in an And. Just in case, I also suggest making a condition before the And that the triggering unit is a hero. Aka:

Code:
AvatarChange
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) is A Hero) Equal to True
        And - All (Conditions) are true
            Conditions
                ((Hero manipulating item) has an item of type Armor1) Equal to True
                ((Hero manipulating item) has an item of type Armor2) Equal to True
                ((Hero manipulating item) has an item of type Armor3) Equal to True
                ((Hero manipulating item) has an item of type Armor4) Equal to True
                ((Hero manipulating item) has an item of type Armor5) Equal to True
    Actions
        Item - Remove (Item carried by (Hero manipulating item) of type Armor1)
        Item - Remove (Item carried by (Hero manipulating item) of type Armor2)
        Item - Remove (Item carried by (Hero manipulating item) of type Armor3)
        Item - Remove (Item carried by (Hero manipulating item) of type Armor4)
        Item - Remove (Item carried by (Hero manipulating item) of type Armor5)
        Unit - Replace (Hero manipulating item) with a NewAvatar using The old unit's relative life and mana

You might need to consider just creating a unit at the position of the triggering unit and deleting the triggering unit.

I think the error is in that the game doesn't know what to do with the items already on the hero and so just cancels the whole thing.

Right now, I'm trying to think what to do with that 6th item on the hero...I think it'd be best if you changed it to needing 6 pieces of equipment, not 5, lest you bug the thing.
 

DM Cross

You want to see a magic trick?
Reaction score
568
Hmm, could i make a variable for the items? so that i could do something similiar to:

unit has item1 of array
unit has item2 of array
unit has item3 of array
unit has item4 of array
unit has item5 of array

Turn unit into avatar

also, where is this "Triggering unit has item of type <armor piece 1>" like condition? the closest i can find is the "Item Comparison" condition (value equal to value) which has done nothing but confuse the living hell out of me!

Grr, i feel like such an idiot, why can't i FIGURE THIS OUT?!
 

Rinpun

Ex TH Member
Reaction score
105
That's because it's a Boolean comparison. Look there :D:D:D

Alright, try this:

Code:
AvatarChange
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) is A Hero) Equal to True
        And - All (Conditions) are true
            Conditions
                ((Hero manipulating item) has an item of type TheSpecialItems[0]) Equal to True
                ((Hero manipulating item) has an item of type TheSpecialItems[1]) Equal to True
                ((Hero manipulating item) has an item of type TheSpecialItems[2]) Equal to True
                ((Hero manipulating item) has an item of type TheSpecialItems[3]) Equal to True
                ((Hero manipulating item) has an item of type TheSpecialItems[4]) Equal to True
    Actions
        For each (Integer A) from 0 to 4, do (Item - Remove (Item carried by (Hero manipulating item) of type TheSpecialItems[(Integer A)]))
        For each (Integer B) from 1 to 6, do (Hero - Drop (Item carried by (Hero manipulating item) in slot (Integer B)) from (Hero manipulating item))
        Unit - Replace (Hero manipulating item) with a No unit-type using The old unit's relative life and mana

TheSpecialItems is a 0 to 4 item type variable array. At Initialization, set each number to whichever piece of special armor you like. Either way, this trigger should work.

In case you're wondering, then second For loop drops whatever item (should do nothing if the slot is blank) from every slot the unit has on him.

Voila, the game will no longer be wondering what it has to do with the items from the old unit.
 

DM Cross

You want to see a magic trick?
Reaction score
568
actually, i tried your first one...and it WORKED! though, i feel the need to apologize to everyone who's been helping me and it not working because i'm an idiot who was using the wrong conditions -.- anyway, THANK YOU THANK YOU THANK YOU! Ringpun, for you're help, you're officially 'father of the avatar' in the credits, lol... (btw, i already wrote those, look at that thread to see)
 

Rinpun

Ex TH Member
Reaction score
105
Heheh, no problem :D

Try the second trigger. It'll work and it's much more clean...if you spare the bother of 5 lines in the initialization trigger like I mentioned.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • 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

      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