TDL_Guvie Posted April 19, 2004 Share Posted April 19, 2004 TESCS give me this error on this script: "Syntax error line 9. Could not find Variable or Function "OnPCDrop." I know that it exists but, what am I doing wrong? Also, if there are any big errors in this script could someone tell me that to this is one of the few scripts i've wrote and none of them work exactly as planned. I'm trying though. ;) begin masterswordfaith if ( OnPCAdd ) player->AddSpell "_FAITHS_FIRE" player->AddSpell "_FAITHS_BLESSING" player->AddSpell "_FAITHS_SHIELD" messagebox "You have obtained the Powers of the Sword of Faith. You are the Master of the Sword of Faith." elseif ( OnPCDrop ) player->RemoveSpell "_FAITHS_FIRE" player->RemoveSpell "_FAITHS_BLESSING" player->RemoveSpell "_FAITHS_SHIELD" messagebox "You have dropped the Sword of Faith. It's power begins to leave you. Find the sword and Regain your powers." elseif ( OnActivate ) player->AddSpell "_FAITHS_FIRE" player->AddSpell "_FAITHS_BLESSING" player->AddSpell "_FAITHS_SHIELD" messagebox "You have obtained the Powers of the Sword of Faith. You are the Master of the Sword of Faith."endif end masterswordfaith Link to comment Share on other sites More sharing options...
Marxist ßastard Posted April 19, 2004 Share Posted April 19, 2004 Try declaring OnPCDrop and OnPCAdd at the beginning of the script... Also, I doubt that the OnActivate tacked on at the end will have much use... And use "its" instead of "it's..." And I have no idea why "powers" and "regain" are capitalized... Link to comment Share on other sites More sharing options...
TDL_Guvie Posted April 19, 2004 Author Share Posted April 19, 2004 Thanks. One more thing though. I want to put my own landscape textures in the game. I made the texture in PSP7 and saved it as a .TGA file and put it in the morrowind/data files/ textures folder. Went to landscaping and then Add A Texture button. I entered the ID and added the texture file I made. TESCS told me that the Directory was Invalid. How to I make it work? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.