Handle Character Stats from External Source

Get help using Construct 2

Post » Tue Feb 28, 2012 9:29 pm

I'm attempting to grab information out of a database in a single run and have the client display the information accordingly.

For example: Cash, Level and Strength

Cash: 1000
Level: 10
Strength: 20

If I pulled those out at one time it would show up as 10001020.

I can play around with it and do something such as 1000.10.20 - 1000&10&20 and so on but here's the question..


How can I make the client somehow recognize that there's sections so that I can place 1000 , 10 , 20 in the right places?


Edit: I attempted a couple searches for things but couldn't find anything. I remember playing around with "Delimiters" on another program but I had a plugin to do just that.Index2012-02-28 21:30:06
B
72
S
10
G
6
Posts: 104
Reputation: 7,550

Post » Wed Feb 29, 2012 12:49 am

hmmm try looking at tokenat and tokenCount system expression.
http://www.scirra.com/manual/126/system-expressions
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Wed Feb 29, 2012 2:16 am

Tokenat looks like it'll do the job. Thanks, Yann.
B
72
S
10
G
6
Posts: 104
Reputation: 7,550


Return to How do I....?

Who is online

Users browsing this forum: Zebbi and 25 guests