Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


How to handle/design RPG event ???


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
20 replies to this topic

#21 iwasbiggs   Members   -  Reputation: 122

Like
Likes
Like

Posted 13 May 2000 - 10:47 PM

quote:
Original post by CodyVa

How do you do scripts?

like commands maybe
movperson(person, here, there)
Speak(person,string)?
type stuff
with time delays in between?
I dunno.


Scripts can be accomplished through writing a text parser. It goes along a file pointer and just scans the entire file and acts based on what it hits. Later check the string you scanned in against a list of available functions in a 2d-array of chars. Then (usually) you can save just the raw code of the text that was converted into a more compact array of bytes or ints (sort of like machine code) and just cycle through this array when you go to execute the script.

For delays... make a wait function for the script.



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS