Lesson 15 - Counterspells
- Stop that Magic in it's Tracks!
Shadowtext: The problem is, it can only work for a spell that is made using the Damage-Algorythm (Cast by the Enemy). Simply add to the Algorythm the line
ForkConditions Switch."Counter" = ON
____Message: "The Spell was Countered!"
____Switch "Counter" = OFF
Else
Shadowtext: And put the damage-data in the "Else" condition. Now, as for draining it. Add this to the above Fork.
Message: \c[(whatever character) " gained " (the MP Cost) " MP!"
ChangeMP.(Counterer).IncreaseMP (the MP Cost)
Master Mage: "But who's to say that counterspells always work?"
Shadowtext: I think they can figure out the probability factor.
Master Mage: "There's also the question of "Reflection" spells."
Shadowtext: Ooh, that's a good idea. Okay to the above event, add the Damage Algorythm, and this time, reverse it by changing it to the "Enemy" data. Ingenious, no? And you could even make "Reflect" an item-attribute! Just make an event to check if that item is equipped, and then the "reflect" switch will always be on.
Master Mage: So, that's it, then?
Shadowtext: Yeah, I think so.
![]() |
Lesson 15 - Counterspells |
| Stop that Magic in it's Tracks! | |
| Shadowtext | |
| Jan 01, 2013 | |
| Page Views: 434 | |
| Written for: Rm2k | |
| Related: Lesson 16 - Familiars |
Public Rating
- N/A
- 0 Total Votes
Comments
You must be signed in to enter a comment for this game.
