Sharlikran Posted April 6, 2012 Share Posted April 6, 2012 (edited) If VersionLessThan 0.9.13 Message "This mod must be installed by OBMM version 0.9.13 or later to prevent script errors." FatalError EndIf SetVar InstallFiles 1 If InstallFiles = 1 CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true EndIf This syntax is not correct according to LHammonds Legacy Script analyzer. It keeps telling me the function is not defined. I Tried: For Count 1 2 CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true EndFor All I want to do is copy two files from one folder to another folder. To me the below example is all I should have to do. If VersionLessThan 0.9.13 Message "This mod must be installed by OBMM version 0.9.13 or later to prevent script errors." FatalError EndIf CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true However that's not right either. What is a better resource of syntax. I skimmed over a few posts but all the entries for CopyDataFile state CopyDataFile <From> <To> [RecurringSubdirectories] So then my syntax should be right. Why is my command to copy file here being treated an an undefined function when it's in the list of commands for the script file? Or Pascal-ish? ^_^ LOL!!! Procedure Install; CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dll" "OBSE\\Plugins\OBSE_Elys_Pluggy.dll" true CopyDataFile "00 Core Files\OBSE_Elys_Pluggy.dlx" "OBSE\\Plugins\OBSE_Elys_Pluggy.dlx" true End; Edited April 6, 2012 by Sharlikran Link to comment Share on other sites More sharing options...
Maskar Posted April 7, 2012 Share Posted April 7, 2012 For the variable you should use: If Equal %install% 1. Also folders should all include \\ rather than \. Link to comment Share on other sites More sharing options...
Recommended Posts