Message-ID: <004201bc5997$0ef062e0$17f9c6c3@johans-dator> From: "Johan Henriksson" To: Subject: Re: Scripting language Date: Mon, 5 May 1997 22:57:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com from Johan Henriksson, Sweden HTTP://come.to/jhewok | Primary mail: johan DOT he AT telia DOT com #UIN 12035895 Second: jhe75 AT hotmail DOT com Third: johan_he AT yahoo DOT com Leadprogrammer and FX-specialist at Real software http://come.to/real_software ************************************************************************* -----Original Message----- From: Brian Ronk To: djgpp AT delorie DOT com Date: Wednesday, May 05, 1999 9:44 PM Subject: Scripting language >I would like to make a scripting language where I can go into another program >and type, say "walk W 5", and by character would walk five spaces west. I >would like to know how you would program the commands in, how they would >work, how to store them. To store them, I guess I would just put it in an >extremely large array, or a linked list of some sort. Does anyone have any >ideas? Thanks. ah! I sure have experience of this since River (old basic-project). I suppose this is for some trigger->event-system? I used a line by line file system with some goto's. 'Walk W 5'? No good! A system like 'down [rows]' is better. But this heavily depends on your game. And you want an interpreter? Just take the line. Put it into a string. Cut it up where you find spaces and put the parts into different strings. Then let a _big_ interpreter do the last stuff and run the commands for you. I think that's all. Hope it helps! > >Brian Ronk > > >Get your FREE Email at http://mailcity.lycos.com >Get your PERSONALIZED START PAGE at http://my.lycos.com >