Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Helpppp
#1
Smile 
Okay guys i finally learnt variable i need help just a small help y'all pros xD
ima just show some demo here

HP=100
SP=100

PRINT "A MONSTER HAS APPEAR"
PRINT
PRINT "What would you do"
PRINT
PRINT "1.KICK"
INPUT X

What i want is IF X = 1 i want to clear both of those variable to 0 HP and SP Big Grin
Reply
#2
IF X = 1 THEN HP = 0: SP = 0
Reply
#3
(05-19-2024, 10:01 AM)BloodyHash Wrote: Okay guys i finally learnt variable i need help just a small help y'all pros xD
ima just show some demo here
HP=100
SP=100
PRINT "A MONSTER HAS APPEAR"
PRINT
PRINT "What would you do"
PRINT
PRINT "1.KICK"
INPUT X
What i want is IF X = 1 i want to clear both of those variable to 0 HP and SP Big Grin

IF X = 1 THEN
    HP = 0: PRINT HP
    SP = 0: PRINT SP
ELSE
    PRINT HP, SP
END IF
HI FROM BEAUTIFUL GREECE.

(05-19-2024, 11:22 AM)RhoSigma Wrote: IF X = 1 THEN HP = 0: SP = 0
You caught me RhoSigma
Reply
#4
thanks guys
Reply




Users browsing this thread: 4 Guest(s)