Lesson 4 - Random Effects
- Wild Magic
Shadowtext: These are great for summon spells. Remember how Odin could do Gungnir or Zantetsuken? Or, for FF8 fans, how Gilgamesh could do Zantetsuken, Excalibur, Excalipur and some other? Well now you too can have a multi-spell summoned monster.
Master Mage: "Okay, now for the cataloguing.
Shadowtext: Yes. Well, you can't enact normal spells, so all of these will have to be Algorythmic. Which means we need to use the skills from Lessons 2 and 3. So, let's just use the actual spells from them. Remember?
Common Event "Awake"; Parallel Process
Condition: Switch."Awake" = ON
vSuccess = RandomNumber 1 * 100
ForkCondition "Variable 00002: vSuccess" Above 70
Switch: "Awake" = OFF
Battle Event "Drop"
Event Condition: Switch."Drop_Spell" = ON
vDamage = Hero.Mage.Defense Power
vDamage = vDamage * 2
vMind = Hero.Mage.Mind Force
vMind = vMind - 5
vDamage = vDamage + vMind
vDamage = vDamage * 10
vEnemy = Enemy.Enemy1.Defense
vEnemy = vEnemy - Enemy.Enemy1.MindForce
vDamage = vDamage / vEnemy
ChangeEnemyHP.HP_Strict.Variable 00002: vDamage
Master Mage: "For now, we'll just use two, but it is very easy to add more, and to use different spells
Shadowtext: What he said. Now for the random spells. It's just basically the Random Number variable, and any effects you want to add.
Battle Event "Random Spell"
Condition: Switch "Random" = ON
vSpellCast = Random Number 1 * 100
Fork Conditions vSpellCast Above 50
____vDamage = Hero.Mage.Defense Power
____vDamage = vDamage * 2
____vMind = Hero.Mage.Mind Force
____vMind = vMind - 5
____vDamage = vDamage + vMind
____vDamage = vDamage * 10
____vEnemy = Enemy.Enemy1.Defense
____vEnemy = vEnemy - Enemy.Enemy1.MindForce
____vDamage = vDamage / vEnemy
____ChangeEnemyHP.HP_Strict.Variable 00002: vDamage
____Message: "Casts Awaken"
____ForkCondition "Variable 00011: vSuccess" Above 70
Switch "Random" = OFF
Master Mage: "It's easy enough to perform even more complex spells from that example, is it not?
Shadowtext: He's right. But if there are any questions, don't feel embarassed, its pretty advanced stuff.
||Lesson 4 - Random Effects|
|Jan 01, 2013|
|Page Views: 439|
|Written for: Rm2k|
|Related: Lesson 5 - Artifical Magic|
- 0 Total Votes
You must be signed in to enter a comment for this game.