Jump to content

Where is stat information?


nightwalker83

Recommended Posts

nightwalker83

Hi,

 

Where is the stat information, this stuff stored in GTA IV? I want to create an automated checklist if noone has already created one.

 

Thanks,

 

 

Nightwalker

Link to comment
Share on other sites

Define stats.. If you're talking about anything in the stastical section of the game you can read and write them with this.

 

Oh, didn't see your edit smile.gif Well my link above ^ will help you greatly then. I figured it out by myself as no-one would help me.

Link to comment
Share on other sites

nightwalker83

Thanks! Can I display the friend activities I have completed with this?

Link to comment
Share on other sites

Honesty I don't know, I only used it to to read and change relationship percentages. It also does mission statuses and a whole bunch of other things. Maybe you'll see it listed somewhere if you look.

Link to comment
Share on other sites

nightwalker83

this is what I have so far.

 

 

       ba = Game.GetIntegerStatistic(IntegerStatistic.ACTIVITIES_WITH_BRUCIE);           ja = Game.GetIntegerStatistic(IntegerStatistic.ACTIVITIES_WITH_JACOB);           pa = Game.GetIntegerStatistic(IntegerStatistic.ACTIVITIES_WITH_PACKIE);           Game.DisplayText("Friends activities done:");           if (ba < 7 || ba > 7)           {               Game.DisplayText("You have complete those activities " + ba.ToString());           }           if (ja < 6 || ja > 6)           {             Game.DisplayText("You have complete those activities " + ja.ToString());           }           if (pa < 6||pa > 6)           {          Game.DisplayText("You have complete those activities " + pa.ToString());           }

 

 

Just need to figure out how to display the actual activity instead the number of activities.

Edited by nightwalker83
Link to comment
Share on other sites

nightwalker83

Anyone know how I can retrieve the list of done activities?

 

Edit:

 

This is what I have done so far:

 

 

public delegate void ActivityChangedEvent(int activities, int complete); public delegate void ActivitiesFinishedEvent(int activity, int prgress);     public const int           FRIEND_ACT_BRUCIE = 0,           FRIEND_ACT_JACOB = 1,           FRIEND_ACT_PACKIE = 2; 	    public static event ActivitiesFinishedEvent           OnPlayerCompleteActivities = null; 	 	public static event ActivityChangedEvent           OnPlayerActivityChanged = null; 	         IntegerStatistic[]ActivitiesStatistic =              {                  IntegerStatistic.ACTIVITIES_WITH_BRUCIE,                  IntegerStatistic.ACTIVITIES_WITH_JACOB,                  IntegerStatistic.ACTIVITIES_WITH_PACKIE              };       int[]        ActivitiesProgress = new int[3];          ActivitiesProgress[0] = Game.GetIntegerStatistic (ActivitiesStatistic[0]);           ActivitiesProgress[1] = Game.GetIntegerStatistic(ActivitiesStatistic[1]);           ActivitiesProgress[2] = Game.GetIntegerStatistic(ActivitiesStatistic[2]); 	     ActFinished[0] = Game.GetIntegerStatistic(ActFinishedStatistic[0]);           ActFinished[1] = Game.GetIntegerStatistic(ActFinishedStatistic[1]);           ActFinished[2] = Game.GetIntegerStatistic(ActFinishedStatistic[2]); 	         if (OnPlayerActivityChanged != null)               {                   for (int i = 0; i < 19; i++)                   {                       if (Game.GetIntegerStatistic(ActivitiesStatistic[i]) != ActivitiesProgress[i])                       {                            OnPlayerActivityChanged(Game.GetIntegerStatistic(ActivitiesStatistic[i]),  ActivitiesProgress[i]);                           ActivitiesProgress[i] = Game.GetIntegerStatistic(ActivitiesStatistic[i]);                       }                   }               }    if (OnPlayerCompleteActivities != null)               {                   for (int i = 0; i < 19; i++)                   {                       if (Game.GetIntegerStatistic(ActFinishedStatistic[i]) != ActFinished[i])                       {                           if (Game.GetIntegerStatistic(ActFinishedStatistic[i]) != ActFinished[i]) OnPlayerCompleteActivities(i,  Game.GetIntegerStatistic(ActFinishedStatistic[i]));                           else OnPlayerCompleteActivities(i, Game.GetIntegerStatistic(ActFinishedStatistic[i]));                           ActFinished[i] = Game.GetIntegerStatistic(ActFinishedStatistic[i]);                       }                   }               }

 

 

I'm not sure how to test it?

Edited by nightwalker83
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.