Difference between revisions of "FindFirstFile"

Jump to navigation Jump to search
415 bytes added ,  09:09, 26 April 2009
no edit summary
imported>Low Post
(New page: A command for Pluggy. '''Syntax:''' (IsFileFound:bool) FindFirstFile ''(FileFound)StringID:long'' ''(FileMask)StringID:long'' ''RootID:short'' ''Directories:bool'' ...)
 
imported>Low Post
*Defines if files (0) or directories (1) are returned. Default is 0.
*If you want to modify a string from another mod, you will need to set the Global flag to 1. If Global is 0 or unset the function will fail. If the string is protected the function will fail.
 
==Example==
Quest script that display in the console the list of *.bsa files in Oblivion/Data folder:
<pre>scn testffs
 
Begin GameMode
SetString -2000 "*.bsa"
If ( FindFirstFile -2050 -2000 1 ) == 0
StopQuest TestFF
Return
EndIf
SaveIP
StringMsg -2050 1
If ( FindNextFile -2050 ) == 0
StopQuest TestFF
Return
EndIf
RestoreIP
End</pre>
 
==See also==
Anonymous user

Navigation menu