Difference between revisions of "Scripting Tutorial: Spell Tome"
Scripting Tutorial: Spell Tome (edit)
Revision as of 15:24, 6 February 2011
, 15:24, 6 February 2011→IronSpine Supplemental - If the script doesn't work?
imported>IronSpine |
imported>IronSpine |
||
(One intermediate revision by the same user not shown) | |||
Line 175: | Line 175: | ||
;Add to SpellBook. | ;Add to SpellBook. | ||
Player.AddSpell AMLLAlliedDefenderMinorSpell | Player.AddSpell AMLLAlliedDefenderMinorSpell | ||
PlaySound | PlaySound SPLAlterationCast | ||
Set isDone to 1 | Set isDone to 1 | ||
EndIf | EndIf | ||
Line 187: | Line 187: | ||
Note the scripts don't appear case-sensitive generally so it's up to you, but for easier reading out of habbit I use Pascal Casing due to my background. | Note the scripts don't appear case-sensitive generally so it's up to you, but for easier reading out of habbit I use Pascal Casing due to my background. | ||
Thanks to the original author of this article for the general knowledge. Tomes open up a hugely interesting way to add true custom spells to the game in a way that feels right and perfectly fits in with the mechanics. Instead of simply using a code to get the object you can of course go stuff it into a bookshelf, chest or anything else and "go get it properly" in-game :) | Thanks to the original author of this article for the general knowledge. Tomes open up a hugely interesting way to add true custom spells to the game in a way that feels right and perfectly fits in with the mechanics. Instead of simply using a code to get the object you can of course go stuff it into a bookshelf, chest or anything else and "go get it properly" in-game ''':)''' | ||
- IronSpine | |||
---- | ---- | ||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
[[Category:Scripting Tutorials]] | [[Category:Scripting Tutorials]] |