khanh93vn 说:
Guys, Is there any code in triggers to read/write files on disks? For example: write the number of bandit parties on the map to a txt file while the game is running, and it can be read in-game
you are asking two different things
For SP (not MP + database/website)
1) Is there code to write to disk? Kind of. If you enable EDIT MODE you can use rgl_log.txt and print any message/text you want to
1.1) You can then parse the .txt and use the data on logs, graphs, a second screen, external UI, bug testing, etc
2) Can I read stored information and use it in-game, like in a presentation? Kind of. You can't read from any file in disk, but you can store your info on slots/global variables/name string and use it on your code (those are saved on your savegame files)
VC used both for testing and a small part of that code is still available with its modsys if you want to see examples