The Daily Click ::. Forums ::. Klik Coding Help ::. Can String Parser 2 retrieve line numbers?
 

Post Reply  Post Oekaki 
 

Posted By Message

Joshua M.



Registered
  01/06/2004
Points
  1999
20th November, 2005 at 07:22:25 -

Alright, it's like this.
A rather big textfile is loaded in a game and it's being interpreted as a script. Then, at a certain point, I want to jump to a different line in the script. That line contains the text 'LABEL home', for example.
Now, what do I have to do retrieve the line number? Can it be done with String Parser 2?

 

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
20th November, 2005 at 07:34:18 -

Load the text file into List Object, then:

[insert event here]
-List object: Set current line to (FindString( "List", "LABEL home", 0 ))

Oh yes, isn't that what the GetLine object is for? It's been released recently, I haven't tried it yet, but you could get it here:
http://www.clickteam.info/extensions/extview.php?id=370

Image Edited by the Author.

 
n/a

Joshua M.



Registered
  01/06/2004
Points
  1999
20th November, 2005 at 07:57:39 -

I tried that object. It doesn't do what I'm searching for though
Anyway, the list thing works great. Thanks

 
   

Post Reply



 



Advertisement

Worth A Click