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

 
 
 

Results 1 to 3 of 3
  1. View Forum Posts #1 Reply With Quote
    Ritter Der Ahnungslose's Avatar
    Join Date
    Nov 2009
    Location
    wo der Brunnen aus der Mitte entsprang
    Posts
    1,033
     
    Der Ahnungslose is offline

    Hilfe bei komplexer Dialog Condition

    Hallo Community,

    ich bräuchte mal wieder eure sehenden Augen. Ich bin mir nicht sicher, aber auf jeden Fall feuert mein important Dialog nicht ab. Ich will nur ausschließen, ob es an der komplexen Condition hängt oder nicht, so dass ich gegebenfalls woanders auf Suche gehen kann. Vorneweg, alle Variablen-Zuweisungen sind gemäß Condition belegt. Gibt es Probleme mit den verschachtelten || Bedingungen?

    Code:
    if ( (Snaf_NotNowOff == TRUE)
    	&& (Chance_ForFerrinsLove == LOG_RUNNING)
    	&& (First_Meeting == FALSE)
        
        && (( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTA" ))
    	||  ( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTB" )))
    
    	&& ((Ferrin_Info_Day < (Wld_GetDay()-1))
    	|| ((Ferrin_Info_Day == (Wld_GetDay()-1)) && (Wld_IsTime(01,01,23,59))))
    	)
    
    		{
    			return 1;
    		};
    };

  2. View Forum Posts #2 Reply With Quote
    #define sizeof(x) rand()  Gottfried's Avatar
    Join Date
    Mar 2006
    Location
    Advanced Testchamber #18
    Posts
    2,498
     
    Gottfried is offline
    Also ich würde es ja mal damit probieren:
    Code:
    if(Snaf_NotNowOff == FALSE) { return 0; };
    Print("1");
    if(Chance_ForFerrinsLove != LOG_RUNNING) { return 0; };
    Print("2");
    if(First_Meeting != FALSE) { return 0; };
    Print("3");
    if (!(( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTA" ))
    ||    ( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTB" )))) { return 0; };
    Print("4");
    if (!((Ferrin_Info_Day <  (Wld_GetDay()-1))
    ||   ((Ferrin_Info_Day == (Wld_GetDay()-1)) && (Wld_IsTime(01,01,23,59))))) { return 0; };
    return 1;
    Damit kannst du schonmal überprüfen wie weit du kommst

    MfG Gottfried

  3. View Forum Posts #3 Reply With Quote
    Ritter Der Ahnungslose's Avatar
    Join Date
    Nov 2009
    Location
    wo der Brunnen aus der Mitte entsprang
    Posts
    1,033
     
    Der Ahnungslose is offline
    sieht so aus, als macht das hier Probleme:

    Code:
    if ( (Snaf_NotNowOff == TRUE)
    	&& (Chance_ForFerrinsLove == LOG_RUNNING)
    	&& (First_Meeting == FALSE)
        
        && (( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTA" ))
    	||  ( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTB" )))
    
    	&& ((Ferrin_Info_Day < (Wld_GetDay()-1))
    	|| ((Ferrin_Info_Day == (Wld_GetDay()-1)) && (Wld_IsTime(01,01,23,59))))
    	)
    
    		{
    			return 1;
    		};
    };
    Alles andere sollte nach Tests mit Gottfrieds Methode passen.

    Edit: Es lag an den roten Klammern, nachdem ich diese entfernt habe ging es.

    Code:
    if ( (Snaf_NotNowOff == TRUE)
    	&& (Chance_ForFerrinsLove == LOG_RUNNING)
    	&& (First_Meeting == FALSE)
        
        && (( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTA" ))
    	||  ( Hlp_StrCmp ( Npc_GetNearestWP ( self ), "WAYPOINTB" )))
    
    	&& ((Ferrin_Info_Day < (Wld_GetDay()-1))
    	|| ((Ferrin_Info_Day == (Wld_GetDay()-1)) && (Wld_IsTime(01,01,23,59))))
    	)
    
    		{
    			return 1;
    		};
    };
    Last edited by Der Ahnungslose; 28.12.2010 at 20:21.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
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