For example, I have a dialog that asks if the player is male or female.
I'm also wondering if I can have the game user players to input a name.
On top of that, how would I switch pronouns (he to she, his to hers?)
Just in case anybody is wondering, I'm trying to make a dating simulator. Pretty cheezy, I know.
Quote from: MookieLove on Wed 21/09/2005 14:45:08
I'm also wondering if I can have the game user players to input a name.
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18479
Quote from: MookieLove on Wed 21/09/2005 14:45:08
For example, I have a dialog that asks if the player is male or female.
(...)
On top of that, how would I switch pronouns (he to she, his to hers?)
For example:
// dialog script
@1
player: I'm male of course!
run-script 1
stop
@2
player: I'm female, can't you see??
run-script 2
stop
// global script
string he;
string his;
export he; // export variables to make them useable in room scripts
export his;
function dialog_request(int parameter) {
if (parameter == 1) { // run-script 1: male
StrCopy(he, "he");
StrCopy(his, "his");
}
else if (parameter == 2) { // run-script 2: female
StrCopy(he, "she");
StrCopy(his, "her");
}
}
// script header
import he; // import variables to make them useable in room scripts
import his;
// some script
Display("%s grabbed %s bag and went on %s way.", he, his, his);