Append recognizable by system text

Get help using Construct 2

Post » Thu Aug 01, 2013 7:33 pm

Im making some kind of console for my game.

I made a command "display".

In command line Im typing "display PX player.x" it should works like this:

- display (what action do I want)
- PX (just text to display)
- player.x (data, which I want to display)

Im getting "PX player.x", but I wanted "PX 200 (or whatever)".

So, my question is: Is there any way to make what I want?
B
39
S
16
G
6
Posts: 238
Reputation: 7,915

Post » Thu Aug 01, 2013 10:18 pm

C2 doesn't provide a scripting mechanism itself, but you can get close with rexrainbow's
NickName plugin/behaviours.

NicknameScriptingExample.capx
ImageImageImage
B
71
S
21
G
230
Posts: 3,687
Reputation: 128,845

Post » Mon Aug 05, 2013 5:45 am

fill this in text:

"PX" & player.x
B
119
S
30
G
8
Posts: 214
Reputation: 13,160

Post » Mon Aug 05, 2013 5:14 pm

[QUOTE=gonzdevour] fill this in text:

"PX" & player.x[/QUOTE]

I think you little misunderstood my request.
B
39
S
16
G
6
Posts: 238
Reputation: 7,915


Return to How do I....?

Who is online

Users browsing this forum: MikaelS, nahima, Shenkai the ssj and 20 guests