Writing Files With Odd Content

Get help using Construct 2

Post » Fri Aug 04, 2017 5:33 pm

Basically, I want my game to create and write a *.vbs file and run it.

Obviously, the main issue here is that C2's expression tags (" ") get confused with the VBS ones, which either breaks the script or makes a syntax error.

Example:
"msgbox ("sampletext")"

C2 recognises ("sampletext") as an expression and a syntax error.


What am I doing wrong? Is there a workaround or maybe even a completely better way of doing it? I feel like I am being ignorant.
B
1
Posts: 1
Reputation: 129

Post » Fri Aug 04, 2017 6:08 pm

try.
Code: Select all
"msgbox (""sampletext"")"
Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823


Return to How do I....?

Who is online

Users browsing this forum: camtray, Lancifer, marcoscodas and 10 guests