Skip to content

Instantly share code, notes, and snippets.

@auycro
Last active June 3, 2016 06:28
Show Gist options
  • Save auycro/8999c5eb98026e10cbd975ddd46673b9 to your computer and use it in GitHub Desktop.
Save auycro/8999c5eb98026e10cbd975ddd46673b9 to your computer and use it in GitHub Desktop.
Potter= simple online battle game
Team-User
=Minion[10]
=Coach[1..3]
=Scout[1..3]
=Game[]
=League
=Star
=Coin
Minion-GamePlayUnit
=HP {FixNumber}
=DMG {RangeNumber}
=AMMOR {FixNumber}
=Speed {FixNumber}
=Minion_Type{x} implement to ability
=Level{2/4/10/20/50/100/200/400/800}
MinionType Apply when LevelUp
-Warrior {+2/+3/+2/+1}
-Paladin {+3/+2/+2/+1}
-Mage {+2/+3/+1/+2}
-Rogue {+2/+2/+1/+3}
-Gunner {+1/+4/+1/+2}
-Joker {+2/+2/+2/+2}
-Bone {+1/+5/+1/+1}
Grind-MoreLevel=MoreExpGain
=Level{2/4/10/20/50/100/200/400/800}
=Exp{}
Scout-MoreLevel=GoodRandomMinionAttribute
=Level{2/4/10/20/50/100/200/400/800}
=MoreType
Game
=Team[Home,Away]
=Unit[Home[3],Away[3]]
=Result
=Date
GameRule
Pre
1. EachTeamSet Unit in Order
2. GoToPool
3. RandomMatch
Game
1. StartTimer 5Sec->Swap
2. Set Minion, AttackSet{Atk,Special,Swap,Surrender},DefenceSet{Block,Counter,Swap,Surrender}
3. Check Command
AtkPoint =
if (Atk) Random(Dmg)
if (Special) Dmg*2
if (Swap) 0
4. Process Turn
DefHP =
if (Block) = (AtkPoint - Ammor)*Random(Speed/Speed)
if (Counter) = (Atk=Special)? 0 And (AtkTeam_hp - Def_Dmg*2):AtkPoint
if (Swap) = reorder minion and DefHP = AtkPoint
5. Swap Atk<->Def
End
1. AllDie or Surrender
2. Win = 1Star if(>3ConsecutiveWins) +1Star
3. Lose = -1Star
4. Add Coin to Winner
5. ReRank
League
=Rank[]
=Coin{Win}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment