- Joined
- Apr 12, 2011
- Messages
- 12
Hi everyone,
I am working on map for my cousine as a birthday gift, he love rpg maps, so I decided to create one. I've made some new items (like Sword +1, Sword +2 etc.) and put them in custom shop with trigger. I also used some variables. Let me explain on, for example, Sword:
1. I made variable "A_Sword" which is Item-Type variable, and putted in this variable self-created item: Sword +1
2. I created trigger:
--- Event: "Map Initialization"
--- Action "Neutral Building - Add [A_Sword] to [my shop] with 1 in stock and a max stock of 1"
3. I wanted to change the item when hero gain 5 levels, so I've created trigger:
--- Event: "Hero gain new level"
--- Condition: Level = 5
--- Actions:
------ Neutral Building - Remove [A_Sword] from [my shop]
------ Set A_Sword = Sword +2
------ Neutral Building - Add [A_Sword] to [my shop] with 1 in stock and a max stock of 1"
OK, that works perfectly and items in shop changes when hero gain this level. But I cannot understand why items disappear when hero buy it? I've tried with max stock of 10, but it didn't help.
PS. I've got polish version of Warcraft, so I intentionally wrote the whole problem without screen becouse Trigger Editor is also in polish, and I bet you won't understand it
I am working on map for my cousine as a birthday gift, he love rpg maps, so I decided to create one. I've made some new items (like Sword +1, Sword +2 etc.) and put them in custom shop with trigger. I also used some variables. Let me explain on, for example, Sword:
1. I made variable "A_Sword" which is Item-Type variable, and putted in this variable self-created item: Sword +1
2. I created trigger:
--- Event: "Map Initialization"
--- Action "Neutral Building - Add [A_Sword] to [my shop] with 1 in stock and a max stock of 1"
3. I wanted to change the item when hero gain 5 levels, so I've created trigger:
--- Event: "Hero gain new level"
--- Condition: Level = 5
--- Actions:
------ Neutral Building - Remove [A_Sword] from [my shop]
------ Set A_Sword = Sword +2
------ Neutral Building - Add [A_Sword] to [my shop] with 1 in stock and a max stock of 1"
OK, that works perfectly and items in shop changes when hero gain this level. But I cannot understand why items disappear when hero buy it? I've tried with max stock of 10, but it didn't help.
PS. I've got polish version of Warcraft, so I intentionally wrote the whole problem without screen becouse Trigger Editor is also in polish, and I bet you won't understand it