How do I implement some health system in ink? #729
Unanswered
fireton
asked this question in
Writing in ink
Replies: 1 comment
-
Functions are special versions of knots, so they only need to be used if they will return a value. If you're just checking a variable, you can create a tunnel to take damage and use this every time you want to change the health variable.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have
health
variable and when it become zero I divert to say special «death» knot.I see I can't divert from functions so how to implement health check at every move?
To put some
->check_health->
tunnel at every knot and stitch would be very cumbersome...Beta Was this translation helpful? Give feedback.
All reactions