Author Topic: [XP] Achievements Script  (Read 45224 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
[XP] Achievements Script
« on: April 20, 2009, 07:18:40 AM »
Achievements Script
Authors: game_guy
Version: 2.23
Type: A Goals Type Script
Key Term: Misc System

Introduction

A full blown achievement system. Keep track of events your players pull off and make them feel like they've really achieved something. Easy to setup, plenty of options to configure it the way you want.

Features

I'm gonna leave the old list here so you can see the comparison.
Quote from: Old Features
  • Use Achievements in your game!
  • Simple Plug and Play (besides setting up achievements)
  • Achievements Easy to Setup!
  • GamerScore is displayed.
  • You can change what the Score is named
  • Score is stored in a variable and you choose the number.
  • Theres an option to turn on the Print so it prints what achievement you unlocked.
New ones
  • Image/Text Achievement Notification
  • Show all achievements or only ones you unlocked
  • Change text font, size, and color
  • Option to keep track of score
  • Modify notification position
  • Modify text position if using an image
  • Modify popup time
  • Play sound when you unlock an achievement
  • Set return scene, scene you go to when exiting achievements menu
  • Custom queue system allowing you to display multiple achievements at a time
  • Much more compatible
  • Quickly open up achievements without interrupting the current scene
  • Block scenes from the Quick Open
  • See if user has a specific achievement
  • See how many achievements the player has
  • Custom Icon Size Support

Screenshots

Noticed all of my screenshots are down. Here's a video instead.
http://www.youtube.com/watch?v=96KIdAHoBhg

Demo

Demo v2.0 (Outdated and Possibly Bugged) (Broken Link, Lost Demo)
Unofficial Demo Provided by ThallionDarkshine

Script

(click to show/hide)

Here's an RMX-OS Compatibility Patch. You need this if you are using RMX-OS.
(click to show/hide)

If you do use RMX-OS, place both of these scripts Below RMX-OS Options and RMX-OS Script but above Main of course.

ThallionDarkshine's Version

My good o' buddy Thallion has his own version which allows for different types of transitioning in/out styles for the achievement.
(click to show/hide)

Note, to use this, you'll need this script and this dll.

Snippets & Stuff

Damage Achievement Mod
This gives the player an achievement when an actor deals X amount of damage. Place below Achievements script. Allows for multiple achievements.
(click to show/hide)

Gold Spent Mod
Gives the player an achievement after spending X total gold.
(click to show/hide)

Items Gained Mod
Gives the player an achievement after gaining X total items.
(click to show/hide)

Instructions

All in the script.

Compatibility

-Not tested with SDK.
-Should work with everything.
-May corrupt old save games.

Credits and Thanks

    -game_guy ~ For creating it.
    -jragyn00 ~ For the new layout + testing.
    -GAX72 ~ For test achievement image.

Author's Notes

Enjoy! Post any bugs if you find any!
« Last Edit: January 14, 2013, 02:38:42 PM by gameus »

Offline Reno-s--Joker

  • Astral Trancist
  • *****
  • Posts: 674
  • LV: 34
  • Gender: Female
  • Zombie account.
    • View Profile
    • My DeviantART
Re: [XP] Achievements Script
« Reply #1 on: April 20, 2009, 09:55:25 AM »
Lol! They're items. :xD:

Nice and neat little script G_G! ^_^

Offline tSwitch

  • The Haunting
  • Chaos User
  • ******
  • Posts: 1447
  • LV: 1046
  • Gender: Female
  • formerly NAMKCOR
    • View Profile
Re: [XP] Achievements Script
« Reply #2 on: April 20, 2009, 03:19:33 PM »
why in god's name is all that stuff in the class?

if you don't mind, I think I'm going to make a smaller version of this...maybe with my own little feature that I was hoping to figure out...
« Last Edit: April 20, 2009, 03:22:25 PM by NAMKCOR »

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Achievements Script
« Reply #3 on: April 20, 2009, 03:29:59 PM »
I'm working on removing alot of lines NAM. The new version I'm making also has an option of turning on GamerScore and have a different name for teh score. The score will also be stored in a variable. Its about done.


EDIT: Updates.
New features:
GamerScore is displayed.
You can change what the Score is named
Score is stored in a variable and you choose the number.
Theres an option to turn on the Print so it prints what achievement you unlocked.

EDIT2: *Updates* Added a video sample for those who dont really get what the script does and you dont want to download the demo.
http://www.youtube.com/watch?v=HanCYAw7RtE

Das oopdaytes shood beh wee thin eh dets beh cahz oof das roolez. (The updates should be within edits because of the rules.) ~Love, Starrodkirby86

EDIT 3: http://2ghwfa.blu.livefilestore.com/y1pJQuYCjUoeXSQEfc-1rqfJngXN2-jhz15-8zeT8v8w8scKOeVJKZzRZmi9Gwhz2-mrjbv2yXa_FcFM4grXczpkNZZVwJo-ui7/achievements.txt direct text link
« Last Edit: April 22, 2009, 02:41:24 AM by game_guy »

Offline tSwitch

  • The Haunting
  • Chaos User
  • ******
  • Posts: 1447
  • LV: 1046
  • Gender: Female
  • formerly NAMKCOR
    • View Profile
Re: [XP] Achievements Script
« Reply #4 on: April 22, 2009, 03:06:15 PM »
ok I'm going to make a big suggestion.

don't make it pop up the alert window like that.  I can only imagine that being the most annoying thing in the world, that you get the 10,000 damage dealt achievement right in the middle of the big boss fight and a message window pops up, freezing your game.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Achievements Script
« Reply #5 on: April 22, 2009, 11:54:40 PM »
Its an optional feature

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Achievements Script
« Reply #6 on: April 23, 2009, 07:30:04 AM »
Very nice script, nice and simple, I like the window layout of the achivements list, I can probably put an image in that black area, thanks for keeping it open. What I dont like though is the window poping up when you gain them, that should really be an in game window, not a windows window :P

I hope you dont mind I modify this a bit for my game, I'd like to get it to launch url's to update online stats for my website. You will get credits of course :)

Thanks for this wonderful script, some might say its too simple but it was very well needed.

Offline tSwitch

  • The Haunting
  • Chaos User
  • ******
  • Posts: 1447
  • LV: 1046
  • Gender: Female
  • formerly NAMKCOR
    • View Profile
Re: [XP] Achievements Script
« Reply #7 on: April 23, 2009, 02:28:59 PM »
Its an optional feature

still, I think I'm going to script up my own version of an Achievements system

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Achievements Script
« Reply #8 on: April 23, 2009, 04:13:43 PM »
This script is about done updating and soon you'lll just have to use the regular change item commands. The print feature will be removed and I'll add an option to have the GamerScore On/Off

Offline tSwitch

  • The Haunting
  • Chaos User
  • ******
  • Posts: 1447
  • LV: 1046
  • Gender: Female
  • formerly NAMKCOR
    • View Profile
Re: [XP] Achievements Script
« Reply #9 on: April 23, 2009, 04:29:35 PM »
hmm...been thinking about this a bit myself.
the most compatible way to make this script is to do the script call to add achievements, so that's a good idea
*hadn't been really thinking about it before*

however, there are still a few things I'd change, and some features I'd add myself, so if you don't mind competition, I'll probably fix up my own version today ;)

edit: well, the basics of it at least, there's a couple things I want to do that I'm not so certain I quite know how to do yet.
« Last Edit: April 23, 2009, 04:34:16 PM by NAMKCOR »

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Achievements Script
« Reply #10 on: April 24, 2009, 02:08:38 AM »
I love the gamerscore, id probably change it to something else though so its not ripping xbox lol. For mine I think i will go Z-Points cause my webside is ZVC Studios.

But unlike microsoft have them actually worth something, either buy in game rewords or have it upload to a site to share the points across many games.
« Last Edit: April 24, 2009, 02:09:41 AM by Mightylink »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Achievements Script
« Reply #11 on: April 24, 2009, 02:11:45 AM »
Well I could make an add on for this script. Converts Points to a certain amount of gold, or even setup a shop where it uses Points instead of gold. In fact thats exactly what I'll do!

Expect it in the next update!

Offline tSwitch

  • The Haunting
  • Chaos User
  • ******
  • Posts: 1447
  • LV: 1046
  • Gender: Female
  • formerly NAMKCOR
    • View Profile
Re: [XP] Achievements Script
« Reply #12 on: April 24, 2009, 02:16:21 AM »
Well I could make an add on for this script. Converts Points to a certain amount of gold, or even setup a shop where it uses Points instead of gold. In fact thats exactly what I'll do!

Expect it in the next update!

that's a pretty cool idea.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Achievements Script
« Reply #13 on: May 02, 2009, 09:11:13 AM »
I cant get this to work. Starting a new game and going to the event works but after saving and loading it crashes with undefined event gain_item

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Achievements Script
« Reply #14 on: May 02, 2009, 09:15:22 AM »
SHIT SHIT SHIT FORGOT TO FIX SOMETHING DAMMIT!

Need to fix somethign sorry.

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Achievements Script
« Reply #15 on: May 03, 2009, 12:21:08 AM »
I can wait, I like yours better cause it comes with a menu and I love the layout of it. I also like how it uses items as achivements so I can use icons in it too ^_^

What does bother me a bit though is how it shows the item count ":1" at the end, is it possible to remove that so only the name of the item shows?
« Last Edit: May 03, 2009, 12:22:37 AM by Mightylink »

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Achievements Script
« Reply #16 on: May 03, 2009, 12:24:37 AM »
I'll fix it next update I just gotta find the time to update it.

Offline Punn

  • Ethereal Devastator
  • ****
  • Posts: 493
  • LV: 9
    • View Profile
Re: [XP] Achievements Script
« Reply #17 on: May 06, 2009, 09:27:37 PM »
Achievement are kinda pointless, there's no compensation for completing 'em, only bragging rights.

Offline Mightylink

  • Transcended Spirit
  • ***
  • Posts: 216
  • LV: 6
  • Gender: Male
  • There is no spoon...
    • View Profile
    • ZVC Studio's
Re: [XP] Achievements Script
« Reply #18 on: May 07, 2009, 05:00:04 AM »
Thats why I love this script, you can use the variable for rewards in the game, have like a vendor that uses gamerscore instead of money, but your totally right, those bigger companies should use them for something.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Achievements Script
« Reply #19 on: May 07, 2009, 05:11:03 AM »
I'm fixing the script right now Link. I completely forgot about it :P

EDIT: Done fixed the error now try it.
(click to show/hide)

PLACE BELOW MY ITEM STORAGE SCRIPT IF YOU USE IT!!!!
« Last Edit: May 07, 2009, 05:16:03 AM by Youngster Gi Gi »