Benny53: Download the inca pro demo, install it and go to its install directory and look for the source code.
The actual code that is hard to convert is:
function Replace$(s$,c$,nc$)
for n=1 to len(s$)
tc$=mid$(s$,n)
if tc$=c$
tc$=nc$
endif
ns$=ns$+tc$
next
endfunction ns$
function Piece$(s$,entry,char$)
`If entry<1
` exitfunction ""
` EndIf
`If Trim(char$)=""
` While Instr$(s$,char$+char$)>0
` s$=ReplaceString$(s$,char$+char$,char$)
` endwhile
` EndIf
For n=1 To entry-1
p=instr(s$,char$)
If p
s$=Right$(s$,Len(s$)-p)
Else
exitfunction ""
EndIf
Next
p=Instr(s$,char$)
If p<1
`s$=Trim(s$)
Else
s$=Left$(s$,p-1)
EndIf
endfunction s$
function KeyValue$(properties$,findname$,defaultvalue$)
findname$=lower$(findname$)
repeat
p=Instr(properties$,chr$(13)+chr$(10))
if p>0
keypair$=left$(properties$,p-1)
properties$=right$(properties$,len(properties$)-p-1)
else
keypair$=properties$
properties$=""
endif
p=instr(keypair$,"=")
if p=0
exitfunction ""
else
name$=left$(keypair$,p-1)
value$=right$(keypair$,len(keypair$)-p)
if lower$(name$)=findname$ then exitfunction value$
endif
until properties$=""
endfunction defaultvalue$
function Instr(searchstring$,findstring$)
l1=len(searchstring$)
l2=len(findstring$)
dl=l1-l2
if dl<l then exitfunction 0
for n=0 to dl
endp=n+l2
s$=right$(searchstring$,l1-n)
s$=left$(s$,endp-n)
if s$=findstring$ then exitfunction n+1
next n
endfunction 0
Deagle aka D-Eagle