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
    banned
    Registriert seit
    Jan 2009
    Ort
    Oberösterreich
    Beiträge
    2.393
     
    Moe ist offline

    Variable ändert von selbst irgendwie ihren Wert bzw. erhöht ihn?

    Ich habe in meiner Mod eine Variable eingefügt, die mitzählen soll, wie oft man ein bestimmtes Talent trainiert hat, aber der Wert ist manchmal viel zu hoch! Trainieren kann man bis 100, aber ich bekomme da random Werte über 1000. In meinem Test Save setzte ich die Variable dann mit GVE zurück, aber irgendwann passiert es wieder. Woran kann das liegen?

  2. Beiträge anzeigen #2 Zitieren
    Mythos Avatar von Elvardo
    Registriert seit
    May 2012
    Ort
    Bruderschaft
    Beiträge
    8.506
     
    Elvardo ist offline
    Hast du irgendwo eine Abfrage in einem Dialog oder Skript, wo gefragt wird, wie hoch dieses Talent beim Spieler ist?

    Ich hatte mal bei einer solchen Abfrage statt if(elvardo_train == 60) die Abfrage mit nur einem = geschrieben, was dann eine Zuweisung statt einer Abfrage verursachte, die Variable wurde also immer geändert, wenn der Dialog mit der Abfrage ausgewählt wurde. Könnte es etwas ähnliches sein?

  3. Beiträge anzeigen #3 Zitieren
    banned
    Registriert seit
    Jan 2009
    Ort
    Oberösterreich
    Beiträge
    2.393
     
    Moe ist offline
    Die Variable addstaffskill kommt wie folgt vor:

    Code:
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\AI\AI_Intern\AI_Constants.d (1 Treffer)
    	Zeile 212: var int addstaffskill;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\Story\B_Story\B_AddFightSkill.d (2 Treffer)
    	Zeile 74: 		addstaffskill = addstaffskill + percent;
    	Zeile 74: 		addstaffskill = addstaffskill + percent;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\Story\Dialoge\DIA_NONE_102_Bea.d (2 Treffer)
    	Zeile 255: 		addstaffskill = addstaffskill + 5;
    	Zeile 255: 		addstaffskill = addstaffskill + 5;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\Story\Startup.d (2 Treffer)
    	Zeile 1443: 	hero.HitChance[NPC_TALENT_STAFF] = addstaffskill;
    	Zeile 3784: 	addstaffskill = 0;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\_compiled\GOTHIC.DAT (1 Treffer)
    	Zeile 10709:
    Daran sollte es eigentlich nicht liegen, oder?

  4. Beiträge anzeigen #4 Zitieren
    Veteran Avatar von N1kX
    Registriert seit
    Aug 2018
    Ort
    Serov
    Beiträge
    643
     
    N1kX ist offline
    Zitat Zitat von Moe Beitrag anzeigen
    Die Variable addstaffskill kommt wie folgt vor:

    Code:
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\AI\AI_Intern\AI_Constants.d (1 Treffer)
        Zeile 212: var int addstaffskill;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\Story\B_Story\B_AddFightSkill.d (2 Treffer)
        Zeile 74:         addstaffskill = addstaffskill + percent;
        Zeile 74:         addstaffskill = addstaffskill + percent;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\Story\Dialoge\DIA_NONE_102_Bea.d (2 Treffer)
        Zeile 255:         addstaffskill = addstaffskill + 5;
        Zeile 255:         addstaffskill = addstaffskill + 5;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\Content\Story\Startup.d (2 Treffer)
        Zeile 1443:     hero.HitChance[NPC_TALENT_STAFF] = addstaffskill;
        Zeile 3784:     addstaffskill = 0;
      C:\Games\Gothic 2\Gothic 2 Modden\_work\data\Scripts\_compiled\GOTHIC.DAT (1 Treffer)
        Zeile 10709:
    Daran sollte es eigentlich nicht liegen, oder?
    The same function is called for NPCs when they are assigned weapons skills. B_AddFightSkill.d
    Most likely, this is the problem.

    B_SetFightSkills - B_RaiseFightTalent - B_AddFightSkill + B_RaiseRealFightTalentPercent

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