The Daily Click ::. Forums ::. Klik Coding Help ::. Numeric values in an alterable string
 

Post Reply  Post Oekaki 
 

Posted By Message

Ecstazy



Registered
  04/01/2002
Points
  179

VIP Member
25th August, 2005 at 05:33:09 -

Howdy.

I'm making this thingambob, and I'm using the alterable string of the text object. I was wondering how I can include numeric values in it?
Like if I get a certain amount of damage and it's in counter1, to set the string to "Bobby got " + counter1 + " damage!!!11"

 
Amongst Strangers
http://www.create-games.com/project.asp?id=1445

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
25th August, 2005 at 05:53:48 -

"Bobby is " + Val(age.counter) + " years naked!"

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Ecstazy



Registered
  04/01/2002
Points
  179

VIP Member
25th August, 2005 at 06:08:39 -

Hmm, odd, that didn't work earlier.

Thanks.

 
Amongst Strangers
http://www.create-games.com/project.asp?id=1445

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
25th August, 2005 at 06:25:47 -

He was wrong. He used a string to value conversion.

"Bobby got " + Str$(counter1) + " damage!!!11"

 
Old member (~2004-2007).

Ecstazy



Registered
  04/01/2002
Points
  179

VIP Member
25th August, 2005 at 06:46:54 -

Hmm, doesn't work.
Is that an MMF feature? Because I'm trying this out on TGF.

 
Amongst Strangers
http://www.create-games.com/project.asp?id=1445

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
25th August, 2005 at 07:03:47 -

Remember to replace that "counter1" with your Value of Counter 1 or whatever. That's if you just copied > pasted.

 
Old member (~2004-2007).

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
25th August, 2005 at 07:19:12 -

"This has been answered incorrectly " + Str$( value ("Counter") ) + " timess!"

 
a/n

Ecstazy



Registered
  04/01/2002
Points
  179

VIP Member
25th August, 2005 at 08:15:03 -

Splendid!
Thank you, Mr. Sheep.

 
Amongst Strangers
http://www.create-games.com/project.asp?id=1445
   

Post Reply



 



Advertisement

Worth A Click