input dialog? (feature request)
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.
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.
- SargeBaldy
- Posts: 366
- Joined: Tue Jul 15, 2003 3:49 pm
- Location: Oregon
- Contact:
input dialog? (feature request)
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.
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:
ACC makes:
e.g., you enter:
Code: Select all
script 1 open {
string mystring = "Welcome to TEH HOUSE OF DOOM!!!1";
}
Code: Select all
script 1 open {
var1 = Stringtable[1];
}
Stringtable:
[1]: "Welcome to TEH HOUSE OF DOOM!!!1"
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49231
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
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:
ACC makes:Code: Select all
script 1 open { string mystring = "Welcome to TEH HOUSE OF DOOM!!!1"; }
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...
- SargeBaldy
- Posts: 366
- Joined: Tue Jul 15, 2003 3:49 pm
- Location: Oregon
- Contact: