This is class is for manipulationg with spell. Call crash when there is no spell. To make save code call first
spell.exists
to check if there is existing spell.
caster - Returns beeing who is casting spell. exists - Returns if it exists. hurt (from, to, multiple) - Hurts spell target beeing by rnd(from,to)*multiple and decrease hurt by their reistance against spell elements. might - Returns might of spell. power - Returns power of spell. say (text) - Add text to spell casting messages on screen. target - Returns target object. If spell kind is Item then return class is item otherwise person. This is actual target of spell. If spell kind is against group spell's event onCast is called for every selected target of spell and spell:target is set to this value.
caster
Hurts spell target beeing by rnd(from,to)*multiple and decrease hurt by their reistance against spell elements.
Parameters
from - damage to - damage [default same as from] multiple - [default 1]
Returns
Fire, Watter, Air, Earth, Divine, Mind
might
Returns might of spell. For person is might equivalet for casting skill.
Returns
1-100
power
Returns power of spell.
Returns
1-6
say (text)
Add text to spell casting messages on screen.
Parameters
text - to add
target
Returns target object. If spell kind is Item then return class is item otherwise person. This is actual target of spell. If spell kind is against group spell's event onCast is called for every selected target of spell and spell:target is set to this value.