This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-16 23:51:55

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

BASIC is very interesting!

I have previously heard about BASIC, but I only just got it after reading a forum post. After doing some tutorials, I am assembling a TBG Gladiator style. I have the first few parts, but later onI may need help with the fighting engine. I don't know, maybe. Anyway, it's going well and thank you to whoeever it was who posted that topic!  smile


2012--The biggest troll ever.

Offline

 

#2 2012-04-17 00:23:11

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: BASIC is very interesting!

Kay, already run into a problem. See for yourself.


[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMORY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if destination = ARENA then goto [arena]
if destination = ARMOURY then goto[armoury]
if destination = WEAPONSMITH then goto [weaponsmith]

[armory]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if setfind=NOOB then goto [noobset]
if setfind=QUIT then goto [towncenter]

The problem here is that If i enter ARMOURY, it will say that [arena] does not exist. Arena does not exist because i'm not up to that yet. The only thing that does is armoury, so really, it should go to the armoury when i type that in. I want it to go to [armoury] but it won't. HELP! Also, when I put the $ after the three destinations after the 'if's'. It won't work.

Last edited by Happypieman (2012-04-17 00:24:18)


2012--The biggest troll ever.

Offline

 

#3 2012-04-17 00:30:21

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: BASIC is very interesting!

Happypieman wrote:

Kay, already run into a problem. See for yourself.


[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMORY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if destination = ARENA then goto [arena]
if destination = ARMOURY then goto[armoury]
if destination = WEAPONSMITH then goto [weaponsmith]

[armory]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if setfind=NOOB then goto [noobset]
if setfind=QUIT then goto [towncenter]

The problem here is that If i enter ARMOURY, it will say that [arena] does not exist. Arena does not exist because i'm not up to that yet. The only thing that does is armoury, so really, it should go to the armoury when i type that in. I want it to go to [armoury] but it won't. HELP! Also, when I put the $ after the three destinations after the 'if's'. It won't work.

It is [armoury], not [armory].


http://trinary.tk/images/signature_.php

Offline

 

#4 2012-04-17 00:40:27

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: BASIC is very interesting!

trinary wrote:

Happypieman wrote:

Kay, already run into a problem. See for yourself.


[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMORY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if destination = ARENA then goto [arena]
if destination = ARMOURY then goto[armoury]
if destination = WEAPONSMITH then goto [weaponsmith]

[armory]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if setfind=NOOB then goto [noobset]
if setfind=QUIT then goto [towncenter]

The problem here is that If i enter ARMOURY, it will say that [arena] does not exist. Arena does not exist because i'm not up to that yet. The only thing that does is armoury, so really, it should go to the armoury when i type that in. I want it to go to [armoury] but it won't. HELP! Also, when I put the $ after the three destinations after the 'if's'. It won't work.

It is [armoury], not [armory].

nonono, you see, I was editing that in the forum. It is armory everywhere else. I just edited that in the forums.


2012--The biggest troll ever.

Offline

 

#5 2012-04-17 01:25:34

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: BASIC is very interesting!

Which version of BASIC are you using?


http://trinary.tk/images/signature_.php

Offline

 

#6 2012-04-17 01:26:02

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: BASIC is very interesting!

trinary wrote:

Which version of BASIC are you using?

justBasic


2012--The biggest troll ever.

Offline

 

#7 2012-04-17 01:55:58

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: BASIC is very interesting!

What seems to be the problem?
It runs perfectly.

[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMOURY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if destination = ARMOURY then goto[armoury]
if destination = WEAPONSMITH then goto [weaponsmith]
if destination = ARENA then goto [arena]

[armoury]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if setfind = QUIT then goto [towncenter]
if setfind = NOOB then goto [noobset]

Last edited by trinary (2012-04-17 01:59:27)


http://trinary.tk/images/signature_.php

Offline

 

#8 2012-04-17 02:00:59

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: BASIC is very interesting!

[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMOURY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if destination = ARMOURY then goto[armoury]
if destination = WEAPONSMITH then goto [weaponsmith]
if destination = ARENA then goto [arena]

[armoury]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if setfind = QUIT then goto [towncenter]
if setfind = NOOB then goto [noobset]

I type Arena and it goes to the armoury now.


2012--The biggest troll ever.

Offline

 

#9 2012-04-17 02:07:26

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: BASIC is very interesting!

Happypieman wrote:

[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMOURY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if destination = ARMOURY then goto[armoury]
if destination = WEAPONSMITH then goto [weaponsmith]
if destination = ARENA then goto [arena]

[armoury]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if setfind = QUIT then goto [towncenter]
if setfind = NOOB then goto [noobset]

I type Arena and it goes to the armoury now.

Is this a problem?
If it is, use an if/else.


http://trinary.tk/images/signature_.php

Offline

 

#10 2012-04-17 06:41:09

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: BASIC is very interesting!

Happypieman wrote:

trinary wrote:

Which version of BASIC are you using?

justBasic

You should buy Liberty BASIC. (Made by the same people.) You can compile programs and run run larger programs with it!  tongue


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#11 2012-04-17 06:49:26

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: BASIC is very interesting!

nathanprocks wrote:

Happypieman wrote:

trinary wrote:

Which version of BASIC are you using?

justBasic

You should buy Liberty BASIC. (Made by the same people.) You can compile programs and run run larger programs with it!  tongue

EDIT: I found your problem. You forgot the quotation marks and the $ symbols. I also made your code better so if you type "aReNa", it will still go to the branch label "arena".

Code:

[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMOURY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if lower$(destination$) = "armoury" then goto[armoury]
if lower$(destination$) = "weaponsmith" then goto [weaponsmith]
if lower$(destination$) = "arena" then goto [arena]

[armoury]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if lower$(setfind$) = "quit" then goto [towncenter]
if lower$(setfind$) = "noob" then goto [noobset]

EDIT: Oops, I quoted instead of editing lol.

Last edited by nathanprocks (2012-04-17 06:54:25)


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#12 2012-04-17 14:06:41

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: BASIC is very interesting!

It almost seems like a more complex version of batch, mixed in with maybe scratch or something... Looks interesting.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#13 2012-04-17 16:07:42

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: BASIC is very interesting!

maxskywalker wrote:

Happypieman wrote:

Kay, already run into a problem. See for yourself.


[towncenter]
cls
print "Trade Master: Hello, is there anything you want?"
print "You can go to the ARENA, the ARMORY or the WEAPONSMITH"
input "Where are you bound?---"; destination$
if destination = ARENA then goto [arena]
if destination = ARMOURY then goto[armoury]
if destination = WEAPONSMITH then goto [weaponsmith]

[armory]
cls
print "Armourer: Welcome to my grand shop! What armour are you requiring?"
print "We have some interesting sets. There is currently the NOOB set."
input "What set will you examine? You can exit by typing QUIT"; setfind$
if setfind=NOOB then goto [noobset]
if setfind=QUIT then goto [towncenter]

The problem here is that If i enter ARMOURY, it will say that [arena] does not exist. Arena does not exist because i'm not up to that yet. The only thing that does is armoury, so really, it should go to the armoury when i type that in. I want it to go to [armoury] but it won't. HELP! Also, when I put the $ after the three destinations after the 'if's'. It won't work.

Well I see one major problem.  You say goto armoury but the definition is armory.

I edited that in the forums, it's all spelt armory in it.


2012--The biggest troll ever.

Offline

 

#14 2012-04-17 19:18:51

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: BASIC is very interesting!

Once you have learnt enough BASIC, I really recommend moving onto another language.
BASIC is just so...basic.
And the syntax so...lax.


http://trinary.tk/images/signature_.php

Offline

 

#15 2012-04-17 20:52:12

Happypieman
Scratcher
Registered: 2010-09-28
Posts: 100+

Re: BASIC is very interesting!

trinary wrote:

Once you have learnt enough BASIC, I really recommend moving onto another language.
BASIC is just so...basic.
And the syntax so...lax.

I will, i'm doing Python in Digital Tehnology.


2012--The biggest troll ever.

Offline

 

Board footer