Travelling Merchant

DM Cross

You want to see a magic trick?
Reaction score
568
Annoying rotten bastard of a merchant...Starting to think I should just use Move (Instantly) to teleport him around the map...that way he wouldn't get stuck in a rock again -.-
 

Rinpun

Ex TH Member
Reaction score
105
If he moves instantly, create a special effect around him so it doesn't look strange to a passing by person. He could have some orb of teleportation.
 

DM Cross

You want to see a magic trick?
Reaction score
568
Merchant Arrays:
E: Map init
C:
A: Set Merchant[1] = Merchant1 <gen>
Done for regions 1-8

Merchant Move:
E: In-game time becomes equal to 6.00
In-game time becomes equal to 18.00
C:
A: Unit - Move Traveling Merchant 0078 <gen> instantly to [(Random integer number between 1 and 8)]

Anyone know what I screwed up? The Traveling Merchant is already in the map, in the center of Merchant1 <gen> Time becomes 6.00 and nothing happens...
 

sqrage

Mega Super Ultra Cool Member
Reaction score
514
if you want the "structure" to move go to editor and "movement type" =foot
 

DM Cross

You want to see a magic trick?
Reaction score
568
No, I want the merchant to just kind of teleport around the map...He's supposed to pop around randomly in order to make it hard to find him! You see, he sells all the rarest items and stuff like that, so I don't want him to be easily found...Hence why I wasn't keen on him moving from place to place...
 

Rinpun

Ex TH Member
Reaction score
105
You know, it may just be better to change it to a periodic time. Perhaps he moves every 12 minutes...that'd seem pretty consistent with the change of "days".
 

Zemeio!

Cool Member
Reaction score
1
how about this action:

Code:
Unit- Move (Traveling Merchant 0078) instantly to (Random point in (playable map area))
 

Rinpun

Ex TH Member
Reaction score
105
Nope, man. Think about it. Mister merchant will more often than not find his way on top of trees or cliff. There's one of these Hunters and Farmers game and as a Farmer when I kept getting cheap killed I eventually appeared on top of a small plateau of land and raised like 200-300 pigs and sheep, I was a money-making maniac and no one could reach me.

So, it's kind of lousy to have to wait 1 hour for the slightest chance of a merchant appearing in the right spot. I suggest you stick with the random region array thing, it DOES work.

Hey, I thought of a condition. If some non-computer dude is nearby the panda trader, make the panda wait 20 more seconds before teleporting. That way, he doesn't vanish in the midst of your trade. If you can't make up your mind in twenty seconds, then you're a poor loser.
 

DM Cross

You want to see a magic trick?
Reaction score
568
Heh, that would be kind of funny...However I don't think he'd sell much when a hero walks up to him and "POOF!", gone! ;) However, I did get a basic teleporting merchant down (finally!) and I would like to thank you all for the help :) Much appreciated, very very much...However, the questions don't stop there :p and to make myself less of an annoyance by making a thousand different posts, I can just continue this one! :D Ok, I have the merchant down, but now I was thinking of something cool for some items...Let's say mister bastard merchant (heh, I should call him that...) sells 5 different peice of an armor set...Armor, a shield, a helmet, some weapon and maybe an amulet or something...Now, could I make a trigger that does something like:
E: A unit aquires (items)
C: units has (item 1, item 2, item 3, item 4, item 5)
Unit is equal to hero
A: Turn unit into (some big, mean as hell looking warrior dude)
?
Basically, put a lot easier: if you have all the peices of the armor, you're turned into some kick-butt warrior...The peices themselves won't have great upgrades, but the form you get turned into will have better stats and stuff like that...

Wow, what am I getting myself into? :confused: :D
 

Zemeio!

Cool Member
Reaction score
1
sounds cool, but remember 2 let the player know that it is possible hehehe.. you could also change a skin etc 2 make a really big, cool and armored warrior for transformation : ) (i think) good luck...
 

DM Cross

You want to see a magic trick?
Reaction score
568
Um, so...heh how do you go about turning a unit into another unit when they aquire a certain 5 items? ...wow...why do i do this to myself?!

Thanks in advance...
 

sqrage

Mega Super Ultra Cool Member
Reaction score
514
hehe i think this might work


Events
Time - Every 1.00 seconds of game time
Conditions
(Item-type of (Item carried by (your hero) in slot 1)) Equal to Your Item
(Item-type of (Item carried by (your hero) in slot 2)) Equal to Your Item
(Item-type of (Item carried by (your hero) in slot 3)) Equal to Your Item
(Item-type of (Item carried by (your hero) in slot 4)) Equal to Your Item
(Item-type of (Item carried by (your hero) in slot 5)) Equal to Your Item
Actions
Unit - Replace (Triggering unit) with a (new hero) using The new unit's relative life and mana

except you would have to mess around and make it so certain items can only go into certain slots which might be hard
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Almost... ;)

The condition should be "and - multiple",
with a couple "hero - hero has item of type".

Looks like this:
Code:
And - All (Conditions) are true
    Conditions
        ((Triggering unit) has an item of type Cheese) Equal to True
        ((Triggering unit) has an item of type Sun Key) Equal to True

Add all the required items, and do whatever you feel like doing in the actions.


Actually, working without "and" and simply putting all the conditions as is works too.
Only, I think that having the "and" looks a bit clearer... YMMV
 

DM Cross

You want to see a magic trick?
Reaction score
568
Ty, I'll try that, but question:

Does that mean that the items will HAVE to be in a certain slot?

If yes, then is there a way for people to have it a little easier and just make it so that the item is in the inventory, in general?

Thanks for all the time you're wasting on me! :D
 

DM Cross

You want to see a magic trick?
Reaction score
568
E: Time - Every 1.00 seconds of the game
C: And - All Conditions are True
-C:(Item carried by (Revivable Hero) Equal to (Item carried by (Revivable Hero) of type <Item1-5>)
A: Unit - Replace (Triggering unit) with a Avatar using The new unit's default life and mana

What's wrong with it? I even tried to put them in the right slots...
 

SilverHawk

General Iroh - Dragon of the West
Reaction score
89
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.
 

DM Cross

You want to see a magic trick?
Reaction score
568
Tried that, didn't work, next suggestion?
 

SilverHawk

General Iroh - Dragon of the West
Reaction score
89
The only thing I can think of is switching the triggering unit to hero manipulating item.
 

DM Cross

You want to see a magic trick?
Reaction score
568
*Sighs* that didn't work either, as a matter of fact, it made the whole WC program crash...My latest idea was:

E: Every 1 second
C:
A: If - Item 1 is in slot 1 (for items/slots 1-5)
then do:
-replace buying unit with avatar using default life/mana
elso do:
-do nothing

And THAT did not work...grr and grroar, people...Hopefully one of the moderators can help me with this apparently very complex problem -.-
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • 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
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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