Lesson 3 - Spell Components
- Spells that Use Items
Shadowtext: Umm, yeah. You may remember Raistlin Majere's use of Rose Petals and sand to put people to sleep, or maybe if you played Secret of Evermore you remember Alchemy. This is what we are talking about.
Master Mage: "First, you must have the spell components. Apprentice! Pass out the Potpourri
Shadowtext: Yeah, right. Anyway, first the Items must be made. So make a "Common Item" called "Rose Petal."
Master Mage: "Next form the spell in your mind. Whatever you must do to initiate it, Magic Words, Sigils, whatever your own style of magic requires.
Shadowtext: So now, the event. Clearly, the spell must turn on a switch. We'll call this spell "Sleep." You already know how to do Algorythms for damage, now I'll show you how to do a percentile-condition inducer as well. It's easy to combine them.
Battle Event "Sleep"
Condition: Switch."SleepSpell" = ON
vRosePetals = Item.Rose_Petal.OwningNumber
ForkCondition "Variable 00001: vRosePetals" Above 1
AddItem.DropItem.Rose_Petal.1
vSuccess = RandomNumber 1 * 100
ForkCondition "Variable 00002: vSuccess" Above 70
ChangeEnemyState.AddState.Sleep
End Case
Else
Message: "This Spell requires a Rose Petal"
ChangeMP.MPRestore.(Casting Cost)
End Case
Master Mage: "This was really easy to do. It's easy enough to do this without enemies attacking, too.
Shadowtext: Just add a common event.
Common Event "Awake"; Parallel Process
Condition: Switch."Awake" = ON
vRosePetals = Item.Rose_Petal.OwningNumber
ForkCondition "Variable 00001: vRosePetals" Above 1
AddItem.DropItem.Rose_Petal.1
vSuccess = RandomNumber 1 * 100
ForkCondition "Variable 00002: vSuccess" Above 70
ChangeCondition.CancelCondition.Sleep
End Case
Else
Message: "This Spell requires a Rose Petal"
ChangeMP.MPRestore.(Casting Cost)
End Case
Master Mage: "As you can see, this was pretty easy to do, now that you already know several other points.
Shadowtext: So now you can do Conditions, Damage, and Healing through algorythms, since Healing is just changing "HP Strict" to "HP Restore," and "ChangeEnemyHP" to "ChangeHP."
![]() |
Lesson 3 - Spell Components |
| Spells that Use Items | |
| Shadowtext | |
| Jan 01, 2013 | |
| Page Views: 479 | |
| Written for: Rm2k | |
| Related: Lesson 4 - Random Effects |
Public Rating
- N/A
- 0 Total Votes
Comments
You must be signed in to enter a comment for this game.
