HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding items to shops through trigs.

10-14-2003, 08:03 PM#1
Blo0d-Angel
How come I can't get any items to add to a shop?

My trig just says On Map Initialization:

Neutral Building - Add Goblin Night Scope to Blacksmith 0031 <gen> with 1 in stock and a max stock of 1

This should work as far as I can tell but it does nothing.
10-14-2003, 09:25 PM#2
AllPainful
If I remember right, the goblin blacksmith is not a shop, and thats why.. unless you edited it and gave it the ability to sell items, it won't.
10-14-2003, 09:34 PM#3
Blo0d-Angel
It's a shop based off the human blacksmith with Shop Purchase Item, Select Hero, and Invulnerable (Neutral)
10-14-2003, 09:44 PM#4
Blo0d-Angel
Ok I gave it Sell Item and it worked. Odd that shops dont need sell item if you give them items in the object editor but they do if you are doing so through trigs.
10-14-2003, 09:46 PM#5
theJ89
your problem is already there.

Quote:
at map initilization

Map initilization is before all of the players have started playing.
on the other hand...
Time - Elapsed game time is 0.00 seconds
Runs when all the players are playing right when the map begins.
10-14-2003, 09:48 PM#6
theJ89
Map Initilization
The trigger will run at the exact moment the map loads - that means before you have actually started playing it, which means that creating units or displaying text and whatnot will not work if your trigger runs now.

http://www.wc3campaigns.com/forums/s...threadid=17723
10-15-2003, 12:16 AM#7
Blo0d-Angel
It still says map initialization and it works fine now that I added sell item so I guess you have wrong data.
10-15-2003, 12:49 AM#8
theJ89
It seems i was wrong :bgrun: