Running a Script w/ a Specified Argument Via Textbox

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
kylekrack
Liquid Metal Slime
Posts: 1242
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Running a Script w/ a Specified Argument Via Textbox

Post by kylekrack »

I want to run a script with a textbox cause it's easiest, but is it possible in the textbox conditionals to run the script with a specified argument? There only appears to be a field in "after" to run a script or continue to another text box.

If it's not possible, is there a best alternative?
My pronouns are they/them
Ps. I love my wife
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7660
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

It is not possible, but I am sure we can come up with an alternative.

What were you planning to put in the argument?
User avatar
kylekrack
Liquid Metal Slime
Posts: 1242
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

I wanted to have a script to run, and a single value to input as an argument.

My use for this is to have one plotscript for one quest. The plotscript reads the argument, then runs a certain subscript based on it. Being able to do this in textboxes would just remove a step.

As I type this I'm realizing NPCs have a script argument. I will just use that.
My pronouns are they/them
Ps. I love my wife
Post Reply