The Daily Click ::. Forums ::. Klik Coding Help ::. Alterable Strings
 

Post Reply  Post Oekaki 
 

Posted By Message

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
29th November, 2008 at 23:09:56 -

I was wondering if there was a way to check the total amount of alterable strings in an object?

I'm making an edit box change it's text to one of it's alterable strings (chosen at random) when the user clicks.

So I've got:

Set text to: AltStrN$( "Edit Box", Random( 8 ))

But whenever I add some new alterable strings to the edit box, I have to go in and change the 8 to whatever else. I know this sound real lazy but is it possible to do something like:

Set text to: AltStrN$( "Edit Box", Random((total number of AltStrings in "edit box")))


Edited by -J-

 
n/a ...

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
30th November, 2008 at 00:07:32 -

No such function. If you had it as a String object, with X numbers of paragraphs, and it set the edit box to paragraph #X from the string object, you could retrieve the number of paragraphs easily. It just requires a 2nd object, making it impractical if you have more than one

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
30th November, 2008 at 00:22:22 -

I was starting to think that I would have to use another object

Especially now that I realise I need more than 10 strings.

 
n/a ...
   

Post Reply



 



Advertisement

Worth A Click