Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Signup for Free!
-More Features-
-Far Less Ads-
About   Users   Help
Users & Guests Online
On Page: 1
Directory: 125
Entire Site: 7 & 1168
Page Staff: pokemon x, pennylessz, Barathemos, tgags123, alexanyways, supercool22, RavusRat,
03-29-24 03:59 AM

Forum Links

Thread Information

Views
723
Replies
5
Rating
0
Status
CLOSED
Thread
Creator
Fancdew
01-02-16 02:05 PM
Last
Post
Fancdew
01-25-16 02:20 PM
Additional Thread Details
Views: 437
Today: 0
Users: 1 unique

Thread Actions

Thread Closed
New Thread
New Poll
Order
 

*MY 100th POST!* Batch programming tutorial: Part One

 

01-02-16 02:05 PM
Fancdew is Offline
| ID: 1231363 | 172 Words

Fancdew
Chart
Level: 49


POSTS: 100/527
POST EXP: 17036
LVL EXP: 830583
CP: 1706.7
VIZ: 89937

Likes: 0  Dislikes: 0
Thanks to
VizzedGuy111 :
for the inspiration!

*You can see the original post here: https://www.vizzed.com/boards/thread.php?id=91017&ppp=50&page=0#1231358 *

How to code in batch: Part one
These are the basic commands for a batch file:

@ECHO
OFF: I don't really know what exactly it is for, but if you don't put
it, then your game looks really messed up. This is placed at the top of
the document(I'll talk about that later)
ECHO: Shows something on the screen (Context: ECHO Hi! How are you doing?)
PAUSE: Pauses the script until the user presses a key (Shows up on screen as: Press any key to continue...)
SET: Sets a value (Context: SET NAME=%NAME%)
SET
/P: Prompts a user to enter something. (Context: SET /P NAME: [you can
also put something after that command to show while the user inputs
their information, like this: SET /P NAME=NAME:])
Learn those basic
commands, and you should be able to make a basic batch game! Enter these
commands into notepad, and then set the file name as _____.bat. Hope
this helped!
Thanks to
VizzedGuy111 :
for the inspiration!

*You can see the original post here: https://www.vizzed.com/boards/thread.php?id=91017&ppp=50&page=0#1231358 *

How to code in batch: Part one
These are the basic commands for a batch file:

@ECHO
OFF: I don't really know what exactly it is for, but if you don't put
it, then your game looks really messed up. This is placed at the top of
the document(I'll talk about that later)
ECHO: Shows something on the screen (Context: ECHO Hi! How are you doing?)
PAUSE: Pauses the script until the user presses a key (Shows up on screen as: Press any key to continue...)
SET: Sets a value (Context: SET NAME=%NAME%)
SET
/P: Prompts a user to enter something. (Context: SET /P NAME: [you can
also put something after that command to show while the user inputs
their information, like this: SET /P NAME=NAME:])
Learn those basic
commands, and you should be able to make a basic batch game! Enter these
commands into notepad, and then set the file name as _____.bat. Hope
this helped!
Member
TECH WIZAAAAARD


Affected by 'Laziness Syndrome'

Registered: 05-03-11
Last Post: 2244 days
Last Active: 1417 days

01-02-16 04:28 PM
merf is Offline
| ID: 1231428 | 52 Words

merf
mrfe
merfeo7
Level: 133


POSTS: 5313/5594
POST EXP: 340235
LVL EXP: 27354416
CP: 22001.0
VIZ: 4602227

Likes: 0  Dislikes: 0
This is a really neat idea! Would you be willing to share examples of base scripts you've made, so we can see these in action?

I'm really fascinated by code, it'll more than likely be my career, so I'm quite interested to see some examples. I haven't delved into this aspect before.
This is a really neat idea! Would you be willing to share examples of base scripts you've made, so we can see these in action?

I'm really fascinated by code, it'll more than likely be my career, so I'm quite interested to see some examples. I haven't delved into this aspect before.
Site Staff
Minecraft Admin
[1:32 AM] A user of this: wALL'D MYNERD


Affected by 'Laziness Syndrome'

Registered: 07-15-12
Location: Alberta, Canada
Last Post: 91 days
Last Active: 4 days

01-02-16 04:33 PM
Fancdew is Offline
| ID: 1231430 | 34 Words

Fancdew
Chart
Level: 49


POSTS: 114/527
POST EXP: 17036
LVL EXP: 830583
CP: 1706.7
VIZ: 89937

Likes: 0  Dislikes: 0
mrfe : Yeah, I will post some scripts sometime. I will probably post links to some of my games sometime. I am currently working on a game right now. It's called ZA2: Build the Town!
mrfe : Yeah, I will post some scripts sometime. I will probably post links to some of my games sometime. I am currently working on a game right now. It's called ZA2: Build the Town!
Member
TECH WIZAAAAARD


Affected by 'Laziness Syndrome'

Registered: 05-03-11
Last Post: 2244 days
Last Active: 1417 days

01-02-16 04:43 PM
Fancdew is Offline
| ID: 1231434 | 58 Words

Fancdew
Chart
Level: 49


POSTS: 115/527
POST EXP: 17036
LVL EXP: 830583
CP: 1706.7
VIZ: 89937

Likes: 0  Dislikes: 0
This is one of my scripts. It uses all of the basic commands except one I forgot to mention in the first post, which is cls. Cls is a command used when you want to clear the screen, and is mostly used after the pause commands. Try it out on your computer!

Image upload: 2720x892 totaling 19 KB's.
This is one of my scripts. It uses all of the basic commands except one I forgot to mention in the first post, which is cls. Cls is a command used when you want to clear the screen, and is mostly used after the pause commands. Try it out on your computer!

Image upload: 2720x892 totaling 19 KB's.
Member
TECH WIZAAAAARD


Affected by 'Laziness Syndrome'

Registered: 05-03-11
Last Post: 2244 days
Last Active: 1417 days

(edited by TornadoMudkip on 01-03-16 02:24 PM)    

01-03-16 06:34 PM
Fancdew is Offline
| ID: 1232088 | 170 Words

Fancdew
Chart
Level: 49


POSTS: 124/527
POST EXP: 17036
LVL EXP: 830583
CP: 1706.7
VIZ: 89937

Likes: 0  Dislikes: 0
Lesson Two: Other commands useful for making a game (BONUS: Challenge at end)                                                                                                         ping localhost -n _ >nul: This command makes the script pause for _ seconds. You enter the number of seconds you want it to wait in the blank space, baby. Haha, right? Right?                                                                                                                                                                                            goto: this is when you want to skip to another section in the script. (context: goto sthing)
  labels: these are what you goto. You use them like this:   :sthing                                                                                                                                           if %_% = _ goto _ : A lot of blanks in this one. This is for menus. For example;                                                                                                             1. Chainsaw                    
  2. Knife
  3. Bagel
set /p input: Selection:
if %input% = 1 goto buychainsaw
if %input% = 2 goto buyknife
if %input% = 3 goto buybagel

That's how you use that command!
If you want, you can use words in place of the numbers (Though I encountered bugs with that method)
Well, that's it for this lesson. Except for............... THE CHALLENGE!!!





Make a game using all of these commands. Can you do it?
Lesson Two: Other commands useful for making a game (BONUS: Challenge at end)                                                                                                         ping localhost -n _ >nul: This command makes the script pause for _ seconds. You enter the number of seconds you want it to wait in the blank space, baby. Haha, right? Right?                                                                                                                                                                                            goto: this is when you want to skip to another section in the script. (context: goto sthing)
  labels: these are what you goto. You use them like this:   :sthing                                                                                                                                           if %_% = _ goto _ : A lot of blanks in this one. This is for menus. For example;                                                                                                             1. Chainsaw                    
  2. Knife
  3. Bagel
set /p input: Selection:
if %input% = 1 goto buychainsaw
if %input% = 2 goto buyknife
if %input% = 3 goto buybagel

That's how you use that command!
If you want, you can use words in place of the numbers (Though I encountered bugs with that method)
Well, that's it for this lesson. Except for............... THE CHALLENGE!!!





Make a game using all of these commands. Can you do it?
Member
TECH WIZAAAAARD


Affected by 'Laziness Syndrome'

Registered: 05-03-11
Last Post: 2244 days
Last Active: 1417 days

01-25-16 02:20 PM
Fancdew is Offline
| ID: 1240670 | 22 Words

Fancdew
Chart
Level: 49


POSTS: 201/527
POST EXP: 17036
LVL EXP: 830583
CP: 1706.7
VIZ: 89937

Likes: 0  Dislikes: 0
Is anyone interested in this anymore? If not, I'll ask the mods to take it down. Did anyone succeed at the challenge?
Is anyone interested in this anymore? If not, I'll ask the mods to take it down. Did anyone succeed at the challenge?
Member
TECH WIZAAAAARD


Affected by 'Laziness Syndrome'

Registered: 05-03-11
Last Post: 2244 days
Last Active: 1417 days

Links

Page Comments


This page has no comments

Adblocker detected!

Vizzed.com is very expensive to keep alive! The Ads pay for the servers.

Vizzed has 3 TB worth of games and 1 TB worth of music.  This site is free to use but the ads barely pay for the monthly server fees.  If too many more people use ad block, the site cannot survive.

We prioritize the community over the site profits.  This is why we avoid using annoying (but high paying) ads like most other sites which include popups, obnoxious sounds and animations, malware, and other forms of intrusiveness.  We'll do our part to never resort to these types of ads, please do your part by helping support this site by adding Vizzed.com to your ad blocking whitelist.

×