Lesson 14 - Coin Toss
- Magic Money!
Shadowtext: This isn't really your area.
Master Mage: "I realize that. But you need me."
Shadowtext: Whatever. Okay, I think percentages are the best way to do this.
Battle Event "Coin Toss"
Condition: Switch."ThrowCoins" = ON
vGP = Other.Money
vGP = vGP / 10
Comment: "10% of your gold is thrown this way. You might"
Comment: "want to reduce that, or make it absolute."
ForkCondition vGP 1000 Bigger
____vGP = 1000
End Case
vGPLost = vGPLost + vGP
Comment: "That is how you lose the money."
vGP = vGP * Hero.(Thrower).Level
Comment: "You won't be able to choose the enemy."
ShowBattleAnimation."CoinToss".Enemy1
Comment: "You can make up a way to hit them all, though."
ChangeEnemyHP.Enemy1.DecreaseHP.Variable vGP
Switch."ThrowCoins" = OFF
Master Mage: "Losing the money, though?"
Shadowtext: Glad you reminded me. This is out-of-battle.
Common (Parrallel Process) Event "GoldLoss."
Condition:Variable.vGPLost 0 Above
ChangeGoldHeld.DecreaseMoney vGPLost
vGPLost = 0
Master Mage: "See? You needed me to remind you."
Shadowtext: Fine, you keep your job.
Master Mage: "Hey, remember, you are but a Journeyman! I outrank you."
Shadowtext: Fine. So I am still your underling. It hardly matters.
![]() |
Lesson 14 - Coin Toss |
| Magic Money! | |
| Shadowtext | |
| Jan 01, 2013 | |
| Page Views: 423 | |
| Written for: Rm2k | |
| Related: Lesson 15 - Counterspells |
Public Rating
- N/A
- 0 Total Votes
Comments
You must be signed in to enter a comment for this game.
