actually alot of what he says does make sence. rating games is very much a subjective thing. alot of people say they prefer MI1 and 2 but i loved 3 the best. and we all remember the whole al emmo controversy hehehe
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote
Naming your character and using that name throughout the game
Is it possible to let the player choose the main character's name, and have that name be used throughout the entire game?'
It is indeed possible, and very easy. First off, to ask the player for the name... For AGS pre 2.71:
// Declares a string to store the player's reply
string buffer;
// Asks the player for name and stores it in "buffer"
InputBox("What is your name?",buffer);
// Transfers the content of "buffer" (the name) to the global variable character[...].name
StrCopy(character[EGO].name, buffer);
For AGS 2.71 and later:
player.Name=Game.InputBox("What is your name?");
Be sure to understand the above script in case you make an error and it does not work for you. Then, to call the name in, say, a Display box, just call up the character[EGO].name variable in any script, like so...
DisplaySpeech(EGO, "My name is %s!", character[EGO].name); //V2.6 and below
cEgo.Say("My name is %s!", character[EGO].name);//V2.7+, or...
Display("Your name is %s.", character[EGO].name);
It's as simple as that!
int ypos = 0;
while (ypos < 60) {
SetViewport(0, ypos);
Wait(1);
ypos++;
}
ReleaseViewport();
if (player.ActiveInventory == iSword) {(fight code)}
else {player.say("That doesnt do anything");}
display("Are you just going to push him around or fight him");
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.093 seconds with 14 queries.