Difference between revisions of "Cast - Scroll"

233 bytes added ,  01:57, 5 April 2012
no edit summary
imported>Scornett
m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
 
imported>MoopusMaximus
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:


== Parameters ==
== Parameters ==
*akSource: The [[ObjectReference Script|ObjectReference]] from which to cast the scroll. The source must be able to cast this scroll.
*akSource: The [[ObjectReference Script|ObjectReference]] from which to cast the scroll. The source must be able to cast this scroll (testings seem to show anything will work, regardless whether they have the scroll or not).
*akTarget: An optional [[ObjectReference Script|ObjectReference]] at which to aim the spell. If None is passed and the scroll needs a direction, it will be aimed in a default direction.
*akTarget: An optional [[ObjectReference Script|ObjectReference]] at which to aim the spell. If None is passed and the scroll needs a direction, it will be aimed in a default direction.
**'''Default''': None
**'''Default''': None
Line 34: Line 34:
*If you wish to make an actor cast a scroll using all the normal spellcasting behaviors, please instead use an AI package that includes the [[Procedure_UseMagic|UseMagic procedure]].
*If you wish to make an actor cast a scroll using all the normal spellcasting behaviors, please instead use an AI package that includes the [[Procedure_UseMagic|UseMagic procedure]].
*Actor races can be set to cast magic only in the direction that the actor is facing. if the source is an actor with this racial setting, the target parameter will be ignored.
*Actor races can be set to cast magic only in the direction that the actor is facing. if the source is an actor with this racial setting, the target parameter will be ignored.
*It seems that using this function on an actor that doesn't have the scroll will work. To add, it will also work on Objects, such as a rock.


== See Also ==
== See Also ==