Advertisement
Guest User

Code so far of my little project

a guest
Jul 13th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DIM STR AS INTEGER
  2. DIM AGI AS INTEGER
  3. DIM WIS AS INTEGER
  4. DIM LUK AS INTEGER
  5. DIM RES AS INTEGER
  6. DIM CHR AS INTEGER
  7. DIM POINTS AS INTEGER
  8.  
  9. SUB FINISHPOINTSET 
  10.     PRINT "You have expended all your available points"
  11.     PRINT "Your character's stats are now: "
  12.     PRINT "Strength ", STR
  13.     PRINT "Agility ", AGI
  14.     PRINT "Wisdom ", WIS
  15.     PRINT "Luck ", LUK
  16.     PRINT "Resistance ", RES
  17.     PRINT "Charm ", CHR
  18. ENDSUB
  19.  
  20. SUB POINTSET
  21.     POINTS=20
  22.     INPUT "Please input how many points you want to allocate to the Strength Stat", STR
  23.     STR = STR + 10
  24.     PRINT "The Strength Stat is now ", STR
  25.     SLEEP 2000
  26.     POINTS = POINTS - (STR - 10)
  27.     IF (POINTS<1) THEN
  28.         PRINT "You have no more points to spend :("
  29.         SLEEP 3000
  30.         CALL FINISHPOINTSET
  31.     ELSE
  32.         PRINT "You have ", POINTS, "Points left."
  33.     ENDIF
  34.     SLEEP 2000
  35.     INPUT "Please input how many points you want to allocate to the Agility Stat", AGI
  36.     AGI = AGI + 10
  37.     PRINT "The Agility Stat is now ", AGI
  38.     SLEEP 2000
  39.     POINTS = POINTS - (AGI - 10)
  40.     IF (POINTS<1) THEN
  41.         PRINT "You have no more points to spend :("
  42.         SLEEP 2000
  43.         CALL FINISHPOINTSET
  44.     ELSE
  45.         PRINT "You have ", POINTS, "Points left."
  46.     ENDIF
  47.     INPUT "Please input how many points you want to allocate to the Wisdom Stat", WIS
  48.     WIS = WIS + 10
  49.     PRINT "The Wisdom Stat is now ", WIS
  50.     SLEEP 2000
  51.     POINTS = POINTS - (WIS - 10)
  52.     IF (POINTS<1) THEN
  53.         PRINT "You have no more points to spend :("
  54.         SLEEP 2000
  55.         CALL FINISHPOINTSET
  56.     ELSE
  57.         PRINT "You have ", POINTS, "Points left."
  58.     ENDIF
  59.     INPUT "Please input how many points you want to allocate to the Luck Stat", LUK
  60.     LUK = LUK + 10
  61.     PRINT "The Luck Stat is now", LUK
  62.     SLEEP 2000
  63.     POINTS = POINTS - (LUK - 10)
  64.     IF (POINTS<1) THEN
  65.         PRINT "You have no more points to spend :("
  66.         SLEEP 2000
  67.         CALL FINISHPOINTSET
  68.     ELSE
  69.         PRINT "You have ", POINTS, "Points left."
  70.     ENDIF
  71.     INPUT "Please input how many points you want to allocate to the Resistance Stat", RES
  72.     RES = RES + 10
  73.     PRINT "The Resistance Stat is now", RES
  74.     SLEEP 2000
  75.     POINTS = POINTS - (RES - 10)
  76.     IF (POINTS<1) THEN
  77.         PRINT "You have no more points to spend :("
  78.         SLEEP 2000
  79.         CALL FINISHPOINTSET
  80.     ELSE
  81.         PRINT "You have ", POINTS, "Points left."
  82.     ENDIF
  83.     INPUT "Please input how many points you want to allocate to the Charm Stat", CHR
  84.     CHR = CHR + 10
  85.     PRINT "The Charm Stat is now", CHR
  86.     SLEEP 2000
  87.     POINTS = POINTS - (CHR - 10)
  88.     CALL FINISHPOINTSET
  89. END SUB
  90.  
  91.  
  92.  
  93. SUB MAIN
  94.     DIM NAME AS STRING
  95.     DIM SUREONE AS STRING
  96.     PRINT "Welcome to Verl's Indevelopment Text RPG!"
  97.     INPUT "Input your character's name", NAME
  98.     PRINT "Your Character's name is " + NAME
  99.     SLEEP 2500
  100.     PRINT "You will now set your character's stats, these are Strength, Agility, Wisdom, Luck, Resistance & Charm."
  101.     SLEEP 2500
  102.     PRINT "Strength determines your base limit on how many how much damage you can inflict on an enemy."
  103.     SLEEP 2500
  104.     PRINT "Agility determines your base limit on how fast you are and your chance of dodging an attack."
  105.     SLEEP 2500
  106.     PRINT "Wisdom determines how fast you can learn new skills in a Library."
  107.     SLEEP 2000
  108.     PRINT "Luck determines the chance of succesfuly hitting a Combo in battle and your chance of a succesful rob."
  109.     SLEEP 2500
  110.     PRINT "Resistance determines your base limit of how much damage you can adsorb from an enemy."
  111.     SLEEP 2500
  112.     PRINT "And finally, Charm determines how persuasive you are in swindling money from shop keepers."
  113.     SLEEP 2500
  114.     PRINT "All your stats are set at 10 and you have 20 points to spend, choose carefully."
  115.     SLEEP 2500
  116.     CALL POINTSET
  117. END SUB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement