GRRRR!!! (script not working)
Posted: Sun Jun 10, 2007 4:22 pm
I've spent ages making this script. It's not finished but I went to back it up and it's telling me the spell uvirith_enchant_book_sp can't be found. It's definitely there sitting in the spell list, saved at least ten times as well as an updated version of the plugin. I substituted the spell for fire bite as a test and the error moved to line 77 which was the next reference of the spell. This is really annoying me. I'm not that sure whether it's the spell or the script but I've spent a whole half hour tinkering with stuff and nothing has succeeded. Please help.
Thanks
ML
Thanks
ML
Code: Select all
Begin uvirith_enchanttome
short button
short questionState
if ( OnActivate == 1 )
Set questionState to 1
Return
endif
if ( questionState == 0 )
Return
endif
if ( questionState == 1 )
if ( Player->GetItemCount Misc_soulgem_petty > 0 )
MessageBox "Would you like to study the book to Enchant an Item?" "Yes" "No"
Set questionState to 2
Return
endif
if ( Player->GetItemCount Misc_soulgem_lesser > 0 )
MessageBox "Would you like to study the book to Enchant an Item?" "Yes" "No"
Set questionState to 2
Return
endif
if ( Player->GetItemCount Misc_soulgem_common > 0 )
MessageBox "Would you like to study the book to Enchant an Item?" "Yes" "No"
Set questionState to 2
Return
endif
if ( Player->GetItemCount Misc_soulgem_greater > 0 )
MessageBox "Would you like to study the book to Enchant an Item?" "Yes" "No"
Set questionState to 2
Return
endif
if ( Player->GetItemCount Misc_soulgem_grand > 0 )
MessageBox "Would you like to study the book to Enchant an Item?" "Yes" "No"
Set questionState to 2
Return
endif
if ( Player->GetItemCount Misc_SoulGem_Azura > 0 )
MessageBox "Would you like to study the book to Enchant an Item?" "Yes" "No"
Set questionState to 2
Return
endif
endif
if ( questionState == 2 )
set button to GetButtonPressed
if ( button == 1 )
Set questionState to 0
Return
endif
if ( button == 0 )
if ( Player->GetItemCount Misc_soulgem_petty > 0 )
Player->equip Misc_soulgem_petty
MessageBox "The Grace of Pride: Thank you for your pride, Lord Vivec. I shall not doubt myself, or my people, or my gods, and shall insist upon them, and my ancient rights."
[color="Red"]Cast uvirith_enchant_book_sp Player[/color]
Set questionState to 0
endif
if ( Player->GetItemCount Misc_soulgem_lesser > 0 )
Player->equip Misc_soulgem_lesser
MessageBox "The Grace of Pride: Thank you for your pride, Lord Vivec. I shall not doubt myself, or my people, or my gods, and shall insist upon them, and my ancient rights."
[color="Red"]Cast uvirith_enchant_book_sp Player[/color]
Set questionState to 0
endif
if ( Player->GetItemCount Misc_soulgem_common > 0 )
Player->equip Misc_soulgem_common
MessageBox "The Grace of Pride: Thank you for your pride, Lord Vivec. I shall not doubt myself, or my people, or my gods, and shall insist upon them, and my ancient rights."
[color="Red"]Cast uvirith_enchant_book_sp Player[/color]
Set questionState to 0
endif
if ( Player->GetItemCount Misc_soulgem_greater > 0 )
Player->equip Misc_soulgem_greater
MessageBox "The Grace of Pride: Thank you for your pride, Lord Vivec. I shall not doubt myself, or my people, or my gods, and shall insist upon them, and my ancient rights."
[color="Red"]Cast uvirith_enchant_book_sp Player[/color]
Set questionState to 0
endif
if ( Player->GetItemCount Misc_soulgem_grand > 0 )
Player->equip Misc_soulgem_grand
MessageBox "The Grace of Pride: Thank you for your pride, Lord Vivec. I shall not doubt myself, or my people, or my gods, and shall insist upon them, and my ancient rights."
[color="Red"]Cast uvirith_enchant_book_sp Player[/color]
Set questionState to 0
endif
endif
endif
End