Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to handle/design RPG event ???

4: Adsense

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   

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.






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.