String to command entry?

Get help using Construct 2

Post » Fri Mar 21, 2014 5:23 pm

What I am trying to do is make a function that has multiple parameters depending on the options chosen.

Code: Select all
f.call("action_function",1,"string")
f.call("action_function",2,"string","string")
f.call("action_function",#,"string","string",....)
etc.


You can easily make it a string that would have the same text, but then it stops being a command and is a string that doesn't execute. I am wondering if there is a way to make a string into a command entry. If not then that's okay.

This is mostly a question for reference as I've already know of two work-arounds for the issue. One being a temp array/dictionary, and the other using only 1 "string" entry with tokens ("string1|string2|string3")
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 12 guests