People keep on mistaking what the syntax of if statements is. I really wonder why. Have you read the Plotscripting Tutorial? Looked at any other articles about scripting on the wiki?
HSpeak also ought to be made better at describing what the error is.
Sephy missed another mistake: "if (check tag(6 == ON))" should be "if (check tag(6) == ON)", which is actually the same as "if (check tag(6))". That one's also very popular, but I blame it on common sense.
Also, you can use ( and ) instead of begin and end. I think it leads to cleaner code:
Code: plotscript, which gender, begin
if (check tag(6)) then (
$2 = "he"
$3 = "him"
$4 = "He"
) else (
$2 = "she"
$3 = "her"
$4 = "She"
)
end
Finally, whether or not you want to use a tag or zones ("read zone (id)" returns true or false) to figure out if the player is in the area , you probably wanted to know what command to use. Like this:
Code: plotscript, update walkabout, begin
if (check tag ([TAG ID[)) then ( # or read zone ([ZONE ID]), as required
set walkabout picture (find hero ([HERO ID]), [SPRITE SET ID], outside battle)
set walkabout palette (find hero ([HERO ID]), [PALETTE ID], outside battle) # if needed
) else (
# Or use 'set hero picture/palette' instead
reset walkabout picture (find hero ([HERO ID]), outside battle)
reset walkabout palette (find hero ([HERO ID]), outside battle) # if needed
)
end