Placing Entities Efficiently

Blitz3D Forums/Blitz3D Beginners Area/Placing Entities Efficiently

1) I need only to find a certain part of a string in the 'if entityname()' command, for the countchild/getchild loop. (see above code)

To find a string inside another one, use Instr.
Instr will return the location of string2 in string1. If it can't be found, it will return zero.
If Instr("a blue cube", "cube") > 0 Then
   Print "'cube' is in 'a blue cube'"
EndIf

2) I then need to extract the other parts of that same string and use that for further coding.

For extracting a string from another string, use Mid$.
Mid$ will return the part of the string from the given starting location with the given length. See the help page on Mid$ for an example.
s1$ = "a green cube"
s2$ = "green"

cc = Instr(s1$, s2$)
If (cc > 0) Then
   Print Mid$(s1$, 1, cc - 1)
   Print Mid$(s1$, cc + Len(s2$), Len(s1$))
EndIf