Btw the first code I putt into the create event and these are the codes I used
create event:
ini_open("ACT_1")
ini_write_real("FNAS1", "Night", global.Night)
ini_write_real("FNAS1", "Beatgame", global.Beatgame)
ini_write_real("FNAS1", "Beat6", global.Beat6)
ini_write_real("FNAS1", "Challenge1", global.Challenge1)
ini_write_real("FNAS1", "Challenge2", global.Challenge2)
ini_write_real("FNAS1", "Challenge3", global.Challenge3)
ini_write_real("FNAS1", "Challenge4", global.Challenge4)
ini_write_real("FNAS1", "Challenge5", global.Challenge5)
ini_write_real("FNAS1", "Challenge6", global.Challenge6)
ini_write_real("FNAS1", "Challenge7", global.Challenge7)
ini_write_real("FNAS1", "Challenge8", global.Challenge8)
ini_write_real("FNAS1", "Survival_Night", global.Survival_Night)
ini_close()
step event:
ini_open("ACT_1")
global.Night = ini_read_real("FNAS1", "Night", 1)
global.Beatgame = ini_read_real("FNAS1", "Beatgame", 0)
global.Beat6 = ini_read_real("FNAS1", "Beat6", 0)
global.Challenge1 = ini_read_real("FNAS1", "Challenge1", 0)
global.Challenge2 = ini_read_real("FNAS1", "Challenge2", 0)
global.Challenge3 = ini_read_real("FNAS1", "Challenge3", 0)
global.Challenge4 = ini_read_real("FNAS1", "Challenge4", 0)
global.Challenge5 = ini_read_real("FNAS1", "Challenge5", 0)
global.Challenge6 = ini_read_real("FNAS1", "Challenge6", 0)
global.Challenge7 = ini_read_real("FNAS1", "Challenge7", 0)
global.Challenge8 = ini_read_real("FNAS1", "Challenge8", 0)
global.Survival_Night = ini_read_real("FNAS1", "Survival_Night", 0)
ini_close()
2 comments