Yoshii
New Member
- Reaction score
- 74
I have a problem with map,I want to make it so that if a hero(ex level 2) decide to recreate his character(thus removing it from game) and chose another from the shop,i want the new unit to keep same level as the last hero.I tryed using interger arrayanddindt work out.
this aint wokring as the new hero is still Level 1
Code:
Recreate hero
Action:Set HeroLevel[(Player number of (Triggering player))] = (Level of (Triggering unit))
then the buying hero trigger:
ChoseHero
Events
Unit - A unit Sells a unit
Conditions
Actions
Unit - Remove (Buying unit) from the game
Hero - Set (Sold unit) Hero-level to HeroLevel[(Player number of (Triggering player))], Hide level-up graphics