Moin! Hab ein kleines Problem unter ags 3.1 Ich möchte das mein char mit einen objekt redet. Dies will er aber nicht. das ist mein script:
function object1_a() {
if (UsedAction (A_WALK_TO)) {
if (MovePlayer (252,130)) {
}
}
else if (UsedAction (A_OPEN)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), ".");
}
}
else if (UsedAction (A_USE)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), "");
}
}
else if (UsedAction (A_PUSH)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), ".");
}
}
else if (UsedAction (A_PULL)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), ".");
}
}
else if (UsedAction (A_LOOK_AT)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), ".");
}
}
else if (UsedAction (A_TALK_TO)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), "Das ist das problem!!");
}
}
else if (UsedAction (A_PICK_UP)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), ".");
}
}
else if (UsedAction (A_CLOSE)) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
DisplaySpeech (GetPlayerCharacter (), ".");
}
}
else if (UsedAction (A_USE_INV)) {
if (character [GetPlayerCharacter ()].activeinv == 182) {
if (MovePlayer (252,130)) {
FaceDirection (GetPlayerCharacter (), DIR_UP);
Wait (5);
DisplaySpeech (GetPlayerCharacter (), ".");
}
}
else Unhandled ();
}
}
Wer nett wenn einer helfen könnte.
MfG JPJF