Travelling Merchant

DM Cross

You want to see a magic trick?
Reaction score
567
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
567
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
567
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
567
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
567
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
567
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
567
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
567
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
567
*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.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top