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

#1 2009-11-11 11:50:32

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Game with lists

Is there a game that's like RPG with lots of lists? Because if so I want to see it because if I do then I'm going to look at the things they did so I can make a big project! Also if someone can help me make it I will like that to! Help Please!


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#2 2009-11-11 11:57:02

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Game with lists

What do you mean? Do you want to use lists?

Lists
Dictionary Mode

A list is a 2-dimensional variable. Let's say you want to store multiple items.

Code:

hi, doh, me

You can't do that within a variable. So you use a list. It has multiple variables.
Here are some blocks:

As I said in 'How to use Scratch':


(   ) The list combined. Like the variable grabber. The list [h , e, l, l, o] produces 'hello'.
add [   ] to [  \/] Adds a thing to the end of the list.
[ hi] + add [ he ] to [mylist] = [ hi, he]
delete ( ) of [  \/] Delete the item number in the number entry box.
[hi, he] + delete (2) of [ mylist ] = [hi]
insert [   ] at (  ) of [  \/] Inserts something at the number entry box.
[hi, he] + insert [ doh   ] at (2) of [mylist] = [hi, doh, he]
replace item ( ) of [  \/ ] with [   ] Replaces an item in the number box.
[hi , he] + replace item (2) of [mylist] with [doh] = [hi, doh]
item ( ) of [  \/]Grabs the item in the box.
length of [  \/] How many items that list contains.
[  \/] contains [  ] If a list contains that. If not, false, if yes, true.

Last edited by Greatdane (2009-11-11 12:01:07)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#3 2009-11-11 12:05:30

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Game with lists

Here is the user with the best RPG on the website
http://scratch.mit.edu/users/SImniel


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2009-11-11 12:06:17

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: Game with lists

I Mean  like if I have a list for items. And like I can get the banker to say "You have a dollar in the bank" or "You have a 10 dollar bill in the bank."

Last edited by Zoomreddin (2009-11-11 12:07:00)


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#5 2009-11-11 12:12:57

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Game with lists

Oh, that's easy.

Code:

say[ join(You have a), (item (whatever) of list) ]
^      ^     ^string        ^list block-___________
|      join block-___________________________
say block-__________________________________

The Scratch Way
http://www.imagebeast.net/images/gvyozp5twb2tpwkuwhul.gif

Last edited by Greatdane (2009-11-11 12:20:37)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#6 2009-11-11 12:46:25

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: Game with lists

Ya! That's what I want! But if I get most done than someone help me with the rest!


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#7 2009-11-11 12:48:44

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: Game with lists

And how did you get that photo on the forums? (Sorry I'm new to the forums!)


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#8 2009-11-11 14:28:10

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Game with lists

Basically what I did was I:

#1: Went up to scratch
#2: Constructed my script http://www.imagebeast.net/images/m2l6smx46phgx5a319zl.gif and right-clicked and pressed 'save image of scripts'
#3: Went to imagebeast(you can use any image uploading thing you want)
#4: Uploaded then pressed http://www.imagebeast.net/images/7pj02uw6t7u8o805ruf5.png
#5: I saw my file http://www.imagebeast.net/images/kxr949yjp2ut6n6u0enm.png
#6: I Copied and pasted the code in the top box.
#7: I went to the forums and went:

Code:

[img]http://whateveryourimageis.com[/img]

You don't need to do the code thing.  smile


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#9 2009-11-11 14:54:00

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Game with lists

Oh and BTW, if you need help in BBCode, just ask! There are also many topics on how to use BBCode.


Hai.

Offline

 

Board footer