The Doki Doki Mod Manager SDK is a small module that allows your mod to interface with DDMM.
- Achievements
- Download the latest copy of
ddmm_sdk.rpy
and place it anywhere in yourgame
folder. - Create an init block somewhere in your mod scripts (usually
overrides.rpy
) and register your achievements:
init 10:
call ddmm_register_achievement("ACHIEVEMENT_1", "Achievement Name", "Achievement Description")
call ddmm_register_achievement("ACHIEVEMENT_2", "Achievement Name 2", "Achievement Description 2")
...
# or
init 10 python:
ddmm_register_achievement("ACHIEVEMENT_1", "Achievement Name", "Achievement Description")
ddmm_register_achievement("ACHIEVEMENT_2", "Achievement Name 2", "Achievement Description 2")
...
- When you want your player to earn an achievement, call the appropriate label:
call ddmm_earn_achievement("ACHIEVEMENT_1")
# or
$ ddmm_earn_achievement("ACHIEVEMENT_1")
- That's it!
Label / function - registers an achievement.
- id (string) = the unique identifier for your achievement, used in code (e.g.
MY_ACHIEVEMENT_1
) - name (string) = the user-facing name of the achievement (e.g.
My Achievement
) - description (string) = the user-facing description of the achievement, usually a description of how to earn it (e.g.
Complete Monika's route
)
Label / function - grants the user an achievement. Note that if the achievement has not been registered, an error will occur.
- id (string) = the ID passed to
ddmm_register_achievement
Variable - True
if the mod was launched through DDMM, False
otherwise.
if ddmm_online:
m "You're using DDMM! Well done!"
else
m "You should use DDMM, you know."
The Doki Doki Mod Manager SDK is dedicated to the public domain. For more info, see LICENSE.txt