Is it possible to subtract one variable by another?
Noobypro1409
16 Apr 2022, 06:04I need a health system and i was trying out something and i need to know, is it possible to subtract one variable from another?
whenever i tried to do it i put:
@set test1 = 2
@set test2 = 1
and then in a different passage i put:
@dec test1 {test2}
and it put:
@dec test1 1
in the text box rather than setting test1 to 1, so how do i fix this?
mrangel
16 Apr 2022, 07:18Not sure, but I think @dec test1 {test2}
might be @dec test1 @test2
.
IFforClassroom
17 Apr 2022, 23:34@set test1 = 4
@set test2 = 1
{@test1-=@test2}
Test 1 is {test1}.
Bluevoss
18 Apr 2022, 01:01Beat me to it. Good answer!
IFforClassroom
18 Apr 2022, 02:13If Squiffy ever actually publishes mrangel's updates, it would also be good to reorganize the the documentation. This nugget is a bit hard to find.
Thanks, Bluevoss! Love your games.