Portal-Zone Gothic-Zone Gothic II-Zone Gothic 3-Zone Gothic 4-Zone Modifikationen-Zone Download-Zone Foren-Zone RPG-Zone Almanach-Zone Spirit of Gothic

 

Ergebnis 1 bis 4 von 4
  1. Beiträge anzeigen #1 Zitieren
    Mythos Avatar von Elvardo
    Registriert seit
    May 2012
    Ort
    Bruderschaft
    Beiträge
    8.506
     
    Elvardo ist offline

    Guide haut ab

    Ein Bug den viele Tester in meiner Mod beobachten: Es kommt in 50% der Fälle vor, dass ein NPC im TA_GUIDE_PLAYER nicht auf den hero wartet. Also wenn der hero stehenbleibt, im Inventar herumwuselt oder angesprochen wird, rennt der Führer einfach durch bis zu seinem Zielwp. Normalerweise soll der Führer in so einem Fall ja stehenbleiben und warten. Im TA-Skript ist das ja auch fest definiert. Trotzdem wird das oft ignoriert.

    Ist dieses Problem schon mal jemandem untergekommen?

  2. Beiträge anzeigen #2 Zitieren
    Provinzheld Avatar von TopLayer
    Registriert seit
    Nov 2020
    Beiträge
    286
     
    TopLayer ist offline
    While the NPC is executing a long-term AI function (AI_GoToWp), his state function (ZS_Guide_Player) is not executed. If, moreover, the player is far from this NPC, then his ASSESSPLAYER perk also does not work. Thus, nothing interrupts the AI_GoToWp command.

  3. Beiträge anzeigen #3 Zitieren
    Local Hero
    Registriert seit
    Feb 2017
    Beiträge
    270
     
    F a w k e s ist offline
    TopLayer is right, but you can still improve your ZS_GuidePC function a little bit by increasing self.senses_range:
    Code:
    func void ZS_GuidePC () {
        ...
        self.senses_range = 5000; //default G1 self.senses_range = HAI_DIST_ASSESS_MONSTER; //1000

    If you are working with G1, then vanilla ZS_GuidePC function has 2 active perceptions - first is perception for enemies, second for player.
    If NPC detects enemy second perception will not be activated. But we can 'fix' that -->
    Code:
    func void ZS_GuidePC () {
        Npc_PercEnable (self, PERC_ASSESSENEMY, B_AssessEnemy);
        Npc_PercEnable (self, PERC_ASSESSPLAYER, B_GuidePC_AssessPlayer);
        ...
    For perception PERC_ASSESSENEMY you can call new function B_GuidePC_AssessEnemy that will first call B_GuidePC_AssessPlayer and only afterwards B_AssessEnemy:
    Code:
    func void B_GuidePC_AssessEnemy () {
        var otherBackup; otherBackup = Hlp_GetNPC (other);
        other = Hlp_GetNPC (hero);
        B_GuidePC_AssessPlayer ();
        other = Hlp_GetNPC (otherBackup);
        B_AssessEnemy ();
    };
    
    func void ZS_GuidePC () {
        Npc_PercEnable (self, PERC_ASSESSENEMY, B_GuidePC_AssessEnemy);
        Npc_PercEnable (self, PERC_ASSESSPLAYER, B_GuidePC_AssessPlayer);
        ...

  4. Beiträge anzeigen #4 Zitieren
    Mythos Avatar von Elvardo
    Registriert seit
    May 2012
    Ort
    Bruderschaft
    Beiträge
    8.506
     
    Elvardo ist offline
    Ah, so the hero is just outside of the npcs perception range and the ZS dosnt get interrupted. That makes things clear. Gonna experiment with that a bit. Thanks.

    Im working with the gothic 2 engine and scripts, but thanks F a w k e s

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
Impressum | Link Us | intern
World of Gothic © by World of Gothic Team
Gothic, Gothic 2 & Gothic 3 are © by Piranha Bytes & Egmont Interactive & JoWooD Productions AG, all rights reserved worldwide