Thread: [PI] Implementing Achievements

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 [PI] Implementing Achievements 
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    Base: PI/DSPK

    Problem: What would be the best way for me to make achievements. I already have the interfaces done but i still need to add them server side.

    Errors(Compiling Errors): none

    Other Information/Media(Pictures, etc):


    Reply With Quote  
     

  2. #2  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    Sorry man, would help you with this but I really don't know. Never done anything alike.
    Nice interfaces by the way, real smooth.
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  3. #3  
    Highly Regarded Member

    Lenin's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    1,883
    Thanks given
    526
    Thanks received
    218
    Rep Power
    2434
    looks sweet but replace with the achievement diary interface and icon thingy
    Extreme Donator

    "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
    Reply With Quote  
     

  4. #4  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    The icon is going to be changed don't worry. But i need to get them working server side so its not just a pointless interface. Still need help.


    Reply With Quote  
     

  5. #5  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    Still need help with this. Paying for $5


    Reply With Quote  
     

  6. #6  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    u would probably have to do something like making a method to tell whether the npc was dead. and make the sendframe with @gre@. it may take awhile and theres alot of coding to do this. just write out a whole method for achievements and add checks whether u have the requirements for it to be finished. like if(c.pkPoints += 100); for pk points.
    Reply With Quote  
     

  7. #7  
    Registered Member
    thing1's Avatar
    Join Date
    Aug 2008
    Posts
    2,111
    Thanks given
    131
    Thanks received
    1,099
    Rep Power
    2402
    Shouldn't be very hard .
    For example on your player killing part:

    Code:
    int playerKillCount = 0;
    Then add this where the player wins the fight:

    Code:
    playerKillCount++;
    Other than that all you are doing is simple stuff such as:

    Code:
    if(playerKillCount == ##) {
    //Recolor your text string here ;)
    }
    Keep in mind that this is probably not the best way, but by far the easiest.
    Reply With Quote  
     

  8. #8  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    Quote Originally Posted by thing1 View Post
    Shouldn't be very hard .
    For example on your player killing part:

    Code:
    int playerKillCount = 0;
    Then add this where the player wins the fight:

    Code:
    playerKillCount++;
    Other than that all you are doing is simple stuff such as:

    Code:
    if(playerKillCount == ##) {
    //Recolor your text string here ;)
    }
    Keep in mind that this is probably not the best way, but by far the easiest.
    Thats not efficient in any way possible. I want it to be something like where I don't have to scatter the code all over the place. I also want to keep it so that I don't have to add like a million things. The less the better.


    Reply With Quote  
     

  9. #9  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Quote Originally Posted by $The True Killer$ View Post
    Thats not efficient in any way possible. I want it to be something like where I don't have to scatter the code all over the place. I also want to keep it so that I don't have to add like a million things. The less the better.
    Then i suggest a supposable achievement class.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    Quote Originally Posted by $The True Killer$ View Post
    Thats not efficient in any way possible. I want it to be something like where I don't have to scatter the code all over the place. I also want to keep it so that I don't have to add like a million things. The less the better.
    There is a difference between efficiency and organization.
    Attempting to develop a multi-revision library. See it on GitHub.
    Reply With Quote  
     

  11. Thankful user:


Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Implementing RSA The Real Way
    By Yarnova in forum Tutorials
    Replies: 21
    Last Post: 04-25-2010, 08:23 AM
  2. Implementing a magic system.
    By DharoksShadow in forum Help
    Replies: 2
    Last Post: 12-20-2009, 08:41 AM
  3. Implementing NPC's in WinterLove
    By Mrthunder23 in forum Help
    Replies: 10
    Last Post: 08-24-2009, 12:24 AM
  4. [508] Prayer Implementing
    By XRay in forum Requests
    Replies: 0
    Last Post: 10-27-2008, 01:19 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •