input dialog? (feature request)

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

input dialog? (feature request)

Post by SargeBaldy »

could you make it so ACS can pop up an input dialog that lets someone type something in and save it as a string? this would be nice for something like an "ENTER THE PASSWORD" kinda script. just an idea.
Last edited by SargeBaldy on Fri Oct 31, 2003 4:31 am, edited 2 times in total.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

IIRC, this isn't feasible because all strings are compiled into BEHAVIOR and then accessed using a string table when they're needed. There are no actual string variables in ACS, and no dynamically allocated memory that could define a new custom string at runtime.

e.g., you enter:

Code: Select all

script 1 open {
 string mystring = "Welcome to TEH HOUSE OF DOOM!!!1";
}
ACC makes:

Code: Select all

script 1 open {
 var1 = Stringtable[1];
}

Stringtable:

[1]: "Welcome to TEH HOUSE OF DOOM!!!1"
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

HotWax wrote:IIRC, this isn't feasible because all strings are compiled into BEHAVIOR and then accessed using a string table when they're needed. There are no actual string variables in ACS, and no dynamically allocated memory that could define a new custom string at runtime.

e.g., you enter:

Code: Select all

script 1 open {
 string mystring = "Welcome to TEH HOUSE OF DOOM!!!1";
}
ACC makes:

Code: Select all

script 1 open {
 var1 = Stringtable[1];
}

Stringtable:

[1]: "Welcome to TEH HOUSE OF DOOM!!!1"

If the stringtable was made dynamic it would be possible. I don't know, however, how much work this is...
User avatar
Sphagne
Posts: 513
Joined: Wed Jul 16, 2003 3:36 am

Post by Sphagne »

Nice idea, but as I have tried to suggest it at least three time with no success, I dont think it will success this time.
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

Post by SargeBaldy »

Sphagne wrote:Nice idea, but as I have tried to suggest it at least three time with no success, I dont think it will success this time.
:( oh well
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Sphagne wrote:...I dont think it will success this time.
Success as a verb! SHWEET! ^_^
Locked

Return to “Editing (Archive)”