Travelling Merchant

DM Cross

You want to see a magic trick?
Reaction score
566
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
566
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
566
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
566
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
566
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,494
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
566
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
566
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
88
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
566
Tried that, didn't work, next suggestion?
 

SilverHawk

General Iroh - Dragon of the West
Reaction score
88
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
566
*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.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top