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

#1 2012-04-12 11:57:19

fortmcas
Scratcher
Registered: 2009-07-26
Posts: 48

Cheat Codes

How do you make it so that you can enter a code and it gives you a certain amount of points? Also, how do you make it possible to enter the code?

Fortmcas

Offline

 

#2 2012-04-12 12:08:59

ROSMan
Scratcher
Registered: 2011-04-29
Posts: 1000+

Re: Cheat Codes

Although your explanation was a bit blurry, ill try to explain.

when gf clicked
ask [enter a code.] and wait
if <(answer) = [gold]>
   change [money v] by [10]
The "ask...and wait" block provides a text box for you to type something in. Then, the script i made checks if your answer was "gold". It would then change the money amount by 10 if you entered gold.

for multiple cheat codes, just add more "if"s:

if <(answer) = [logs]>
   change [money v] by [5]
end
if <(answer) = [gum]>
   change [money v] by [15]
any other questions?

Last edited by ROSMan (2012-04-12 12:14:23)


GENERATION 33: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

Offline

 

#3 2012-04-12 12:12:33

fortmcas
Scratcher
Registered: 2009-07-26
Posts: 48

Re: Cheat Codes

Sorry for the uncertainty.  Say my special cheat code was "bob".  If someone entered "joe" my script should only give extra points to the person that typed "bob".

Offline

 

#4 2012-04-12 12:14:00

ROSMan
Scratcher
Registered: 2011-04-29
Posts: 1000+

Re: Cheat Codes

fortmcas wrote:

Sorry for the uncertainty.  Say my special cheat code was "bob".  If someone entered "joe" my script should only give extra points to the person that typed "bob".

just look at my first post. tell me if you have any other questions.


GENERATION 33: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

Offline

 

#5 2012-04-12 12:14:10

fortmcas
Scratcher
Registered: 2009-07-26
Posts: 48

Re: Cheat Codes

Thanks so much!!!

Offline

 

#6 2012-04-12 12:15:19

ROSMan
Scratcher
Registered: 2011-04-29
Posts: 1000+

Re: Cheat Codes

fortmcas wrote:

Thanks so much!!!

no problem


GENERATION 33: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

Offline

 

Board footer