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
17
G
6
Posts: 238
Reputation: 7,995

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
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Mon Aug 05, 2013 5:45 am

fill this in text:

"PX" & player.x
B
122
S
32
G
8
Posts: 214
Reputation: 13,435

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
17
G
6
Posts: 238
Reputation: 7,995


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests