It happen to me that the AGS editor "propose" something to me when I start editing, but it is not working. Ex:
region().enable=false did not work in 2.7. I solve it with disableregion()
character[name] it is not working with name, but only with number of the character
character[2].Walk(355, 245,eBlock, eAnywhere) did not work. I solve it with character[2].AddWaypoint(355, 245)
Other error: I give the command:
character[0].say("It is dark in there ! I cannot see anything !")
and I receive “say is not a public member of character”
AGS is case-sensitive:
region[X].Enable = false; // where X is the number of the region
character[NAME] // name has to be uppercase, or use cName as SSH says
character[0].Say("It is dark in there ! I cannot see anything !");
character[2].Walk(355, 245,eBlock, eAnywhere); // how did it not work? what did (not) happen?
Quote from: kantor_98 on Mon 27/03/2006 11:28:08
It happen to me that the AGS editor "propose" something to me when I start editing, but it is not working. Ex:
Ã, Ã, Ã, region().enable=false did not work in 2.7.Ã, I solve it with disableregion()
CAPITALISATION IS SIGNIFICANT
region[NUM].Enabled=false;
Quote
Ã, Ã, Ã, character[name] it is not working with name, but only with number of the character
Ã, Ã, Ã, character[2].Walk(355, 245,eBlock, eAnywhere) did not work. I solve it with character[2].AddWaypoint(355, 245)
The way you use names is, with EGO for example:
character[EGO].Walk
cEgo.Walk
Once again, note the capitalisation.
Quote
Ã, Ã, Ã, character[0].say("It is dark in there ! I cannot see anything !")
and I receive “say is not a public member of character”
Say, not say. Capitalisation. Oh, and RTFM.
I use the command character[0].say("It is dark in there ! I cannot see anything !") and I receive “say is not a public member of character” message from editor
AGS is case-sensitive. It's "Say", not "say".
character[0].Say("It is dark in there ! I cannot see anything !");