How do i change variables

1

Noa677 2025-02-05 18:58

I need to change hp in my text game like LowRes Adventure 1.1


Timo 2025-02-05 22:23

For example
HP=10
PRINT HP
HP=HP-1
PRINT HP


CLIGUI 2025-02-05 23:13

If you wanted to detect when the character dies you could use something like this:

IF HP<1 THEN PRINT “DEAD”


Timo 2025-02-06 08:19

Ah, this is a good starting point to learn the basics: https://lowresnx.inutilis.com/topic.php?id=306


Sylveon 2025-02-10 20:59

Here’s an example :3

VAR=0
PRINT VAR
VAR=5
VAR=VAR+5
PRINT VAR


Sylveon 2025-02-10 20:59

It should say:

0
10


Log in to reply.