generated from remarkablegames/renpy-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4988618
commit 93556c7
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
label rpg_stats: | ||
|
||
default attack = 0 | ||
default defense = 0 | ||
default magic = 0 | ||
|
||
screen stat(name, amount): | ||
text "[name]: [amount]" | ||
bar value AnimatedValue(amount, 100) xalign 0.5 xsize 300 | ||
|
||
screen stats(): | ||
frame: | ||
xalign 0 ypos 0 | ||
vbox: | ||
use stat("Attack", attack) | ||
null height 15 | ||
use stat("Defense", defense) | ||
null height 15 | ||
use stat("Magic", magic) | ||
|
||
show screen stats | ||
|
||
menu: | ||
"Which stat do you want to increase?" | ||
|
||
"Attack": | ||
$ attack += 1 | ||
jump rpg_stats | ||
|
||
"Defense": | ||
$ defense += 1 | ||
jump rpg_stats | ||
|
||
"Magic": | ||
$ magic += 1 | ||
jump rpg_stats | ||
|
||
"End": | ||
hide screen stats | ||
jump start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ label start: | |
"Drag and Drop": | ||
jump drag_and_drop | ||
|
||
"RPG Stats": | ||
jump rpg_stats | ||
|
||
"Text": | ||
jump text | ||
|
||
|