X
Xmkiller
Guest
Alright im making a rpg map and instead of heros learning abilitys by level im making a shop that sells skills basicly. I did something like "Fire" "Ice" "Earth" (Examples) then when you click on "Fire" Removed the dummy unit "Fire" "Ice" and "Earth" and created dummy units on the selling unit list like "Fireball" "Fire Storm" "Fire Pillar" "Back". Now if you click (buy) "Fireball" the hero buying the unit that has a Spell Book will Enable Ability "Fireball"
Code:::
Events
Unit - A unit enters Warrior Trainer <gen>
Conditions
(Unit-type of (Triggering unit)) Rend Rank 1-7
Actions
Neutral Building - Remove Unit-Type from Warrior Trainer (Select Skill) Rend Rank 1-7
Neutral Building - Add Rend to Warrior Trainer (Select Skill) 0023<gen> Rank 1 with 1 in stock and a max stock of 1
Neutral Building - Add Back to Warrior Trainer (Select Skill) 0023<gen> Back with 1 in stock and a max stock of 1
Unit - Remove (Last created unit) from the game
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Now the problem is when i click on "Rend Rank 1-7" it creates the dummy unit, but it doesnt remove it or do anything else in the Actions. I was thinking it was something wrong with events or conditions but i couldn't find anything wrong.
Thanks
Code:::
Events
Unit - A unit enters Warrior Trainer <gen>
Conditions
(Unit-type of (Triggering unit)) Rend Rank 1-7
Actions
Neutral Building - Remove Unit-Type from Warrior Trainer (Select Skill) Rend Rank 1-7
Neutral Building - Add Rend to Warrior Trainer (Select Skill) 0023<gen> Rank 1 with 1 in stock and a max stock of 1
Neutral Building - Add Back to Warrior Trainer (Select Skill) 0023<gen> Back with 1 in stock and a max stock of 1
Unit - Remove (Last created unit) from the game
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Now the problem is when i click on "Rend Rank 1-7" it creates the dummy unit, but it doesnt remove it or do anything else in the Actions. I was thinking it was something wrong with events or conditions but i couldn't find anything wrong.
Thanks


