ID:86055
 







Note:
The BYOND update system is broken. Delete the old lib and re-download.
To do this, simply follow the steps below:
> Navigate dir: My Documents
> Navigate dir : BYOND
> Navigate dir: lib
> Navigate dir: aza
> Delete dir: 'MedalLib'
> Download MedalLib again.


This library is a really simple plug'n'play library that you should just be able to 'include' in your game and make work without a single line of code.

If your game supports the BYOND Medals system, then this library will allow you to have a graphical effect and sound played to your players as they achieve a medal.

Currently, the library displays the effect only to the person who got the medal, a single sound file, with a single font.

Future features will include:
- Different Effects to Choose From
- A choice of different fonts and font sizes
- A choice of different sound effects
- Instructions on how to customise these features yourself!



This library also includes a very limited version of a new library coming out soon called AZA.MapTextLib, which will allow you to display text onto the map and screen.

runtime error: undefined variable /client/var/medals
proc name: award medal (/proc/award_medal)
source file: MedalLib.dm,72
usr: null
src: null
call stack:
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
Gamemakingdude (/client): New()
runtime error: undefined variable /client/var/client
proc name: award medal effect (/proc/award_medal_effect)
source file: MedalLib.dm,76
usr: null
src: null
call stack:
award medal effect(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
Gamemakingdude wrote:
runtime error: undefined variable /client/var/medals
proc name: award medal (/proc/award_medal)
source file: MedalLib.dm,72
usr: null
src: null
call stack:
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
Gamemakingdude (/client): New()
runtime error: undefined variable /client/var/client
proc name: award medal effect (/proc/award_medal_effect)
source file: MedalLib.dm,76
usr: null
src: null
call stack:
award medal effect(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))

Haywire wrote:
Gamemakingdude wrote:
runtime error: undefined variable /client/var/medals
proc name: award medal (/proc/award_medal)
source file: MedalLib.dm,72
usr: null
src: null
call stack:
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
Gamemakingdude (/client): New()
runtime error: undefined variable /client/var/client
proc name: award medal effect (/proc/award_medal_effect)
source file: MedalLib.dm,76
usr: null
src: null
call stack:
award medal effect(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))


Mickemoose wrote:
Haywire wrote:
Gamemakingdude wrote:
runtime error: undefined variable /client/var/medals
proc name: award medal (/proc/award_medal)
source file: MedalLib.dm,72
usr: null
src: null
call stack:
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
Gamemakingdude (/client): New()
runtime error: undefined variable /client/var/client
proc name: award medal effect (/proc/award_medal_effect)
source file: MedalLib.dm,76
usr: null
src: null
call stack:
award medal effect(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))
award medal(Gamemakingdude (/client), Logged In! (/obj/screen/medal/loggedin))



NOTE TO COMMENTS
Just read the Overview for the MedalLib 2.01

Go to your Documents, BYOND, lib, aza, delete the folder MedalLib then download this version again.

It will fix.
~Micke.
Forgot to mention that, Mickmoose. Appended the blog. Thanks. =]
No problem.
I have applied MedalLib to Rage, very nice library.
AZA: I really hope you're not still using that ugly ~10 line piece of code that we fixed. It'd be different if you weren't doing it to release, but if you are..
Take a look yourself, DT.

I completely re-wrote the text2screen proc.
Interesting.
I still don't know why you use a list; you're adding to a list to be immediately taking things out of it in the next line, why not just do it all in one sweep?

Also, it'd be pretty nice if you could make it auto-expand for longer words. I can already name a medal in my game that's too long to be used. Though, you might be planning it, but do what you will.

Some effect ideas that come to mind are the standard powerpoint transition ones; slides, sweeps, fading in/out, etc.

Good luck.