- Joined
- May 13, 2010
- Messages
- 167
Hello there! I've created a simple formula in 5 minutes to penalty dying heroes in mi rpg. The system works by decreasing hero experiencie, player gold and hero stats based on the dying hero's level.
-
Herodies
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- Set HeroDie = (Triggering unit)
- Set HeroLvl = (Real((Hero level of HeroDie)))
- Set HeroExpLoss = ((Real((Hero experience of HeroDie))) / 5.00)
- Set HeroGoldLoss = (HeroLvl x 300.00)
- Set HeroStatLoss = (HeroLvl x 0.35)
- Wait 10.00 seconds
- Hero - Instantly revive HeroDie at (Center of Region 039 <gen>), Show revival graphics
- Hero - Set HeroDie experience to ((Hero experience of HeroDie) - (Integer(HeroExpLoss))), Hide level-up graphics
- Player - Set (Owner of HeroDie) Current gold to (((Owner of HeroDie) Current gold) - (Integer(HeroGoldLoss)))
- Hero - Modify Strength of HeroDie: Subtract (Integer(HeroStatLoss))
- Hero - Modify Agility of HeroDie: Subtract (Integer(HeroStatLoss))
- Hero - Modify Intelligence of HeroDie: Subtract (Integer(HeroStatLoss))
- Game - Display to (Player group((Owner of HeroDie))) the text: (La muerte te ha costado: |cffDEA510I + ((String(HeroExpLoss)) + ( |rde experiencia, |cffDEA510I + ((String(HeroGoldLoss)) + ( |rde oro, y |cffDEA510I + ((String(HeroStatLoss)) + ( |r de atributos + !)))))))
-
Events