Hello, I’m new here and have a lot of questions about CSIDE programming language as I myself am not taking the computing class so I don’t know a lot about any program language.
I’m having trouble with a my status system
The error I’m getting is: it’s not an error, the CSIDE does not check my *set hp which I put at startup.txt and as my story goes the *set hp might increases, but it does not check
Do I have to manually input every *set hp on every chapter or is there any easier way to do it?
I’m not quite understanding the problem you’re having–are your variables (strength and constitution) not showing up on the stats page?
To answer this question–every time there you want there to be a change to a variable, yes you have to make that change in the code. If you want to do this often, you might want to consider writing a subroutine that you can recall multiple times
SpokesWriter is correct–and if you haven’t *creeated “maxhp” and “currenthp,” then you need to do that too before you can change their values with operators
No, the variables text currenthp HP does not get updated as my stories goes on
So, do I need to put the *set currenthp at every chaper if it got updated or is there any easier way to do it?
I’m afraid there’s no easier way to do it. If you want a variable to change, you have to change it. The code is dumb and will only do what you tell it to do
I see, I thought the code will just read itself and runs by itself if sometimes they got updated.
Thx for the answer, it helps me a lot
Maybe I will just put a subroutine so I don’t have to do it all the time