Sep 30, 2017 at 10:13 PM
Join Date: Jun 13, 2017
Location:
Posts: 34
Age: 21
Pronouns: he/him
The algorithm for the script is pretty simple (the one that runs at an enemy's death) :
1. Make the game remember the enemy died (FL+ specific to that enemy)
2. Branch to the script that checks if all enemies died.
Algorithm for the script that checks if all enemies died :
1. Check if all creatures died (Make a chain of events that only fully run if all the flags are set)
2. If all enemies died, branch to the script that is supposed to run at that point, else just stop the script.
Exemple :
#0900
<FL+5700<EVE0910
#0901
<FL+5701<EVE0910
#0902
<FL+5702<EVE0910
#0903
<FL+5703<EVE0910
#0904
<FL+5704<EVE0910
#0905
<FL+5705<EVE0910
#0906
<FL+5706<EVE0910
#0907
<FL+5707<EVE0910
#0908
<FL+5708<EVE0910
#0909
<FL+5709<EVE0910
#0910
<FLJ0911:5700<END
#0911
<FLJ0912:5701<END
#0912
<FLJ0913:5702<END
#0913
<FLJ0914:5703<END
#0914
<FLJ0915:5704<END
#0915
<FLJ0916:5705<END
#0916
<FLJ0917:5706<END
#0917
<FLJ0918:5707<END
#0918
<FLJ0919:5708<END
#0919
<FLJ0920:5709<END
#0920
<INSERTSUPERFANCYCODEHERE
Also, if you can redo the battle, please unset all flags at the start of the match. Don't use skipflags. They only reset when you completely close the game (Esc-F2 DOES NOT reset them. I learned that the hard way).
1. Make the game remember the enemy died (FL+ specific to that enemy)
2. Branch to the script that checks if all enemies died.
Algorithm for the script that checks if all enemies died :
1. Check if all creatures died (Make a chain of events that only fully run if all the flags are set)
2. If all enemies died, branch to the script that is supposed to run at that point, else just stop the script.
Exemple :
#0900
<FL+5700<EVE0910
#0901
<FL+5701<EVE0910
#0902
<FL+5702<EVE0910
#0903
<FL+5703<EVE0910
#0904
<FL+5704<EVE0910
#0905
<FL+5705<EVE0910
#0906
<FL+5706<EVE0910
#0907
<FL+5707<EVE0910
#0908
<FL+5708<EVE0910
#0909
<FL+5709<EVE0910
#0910
<FLJ0911:5700<END
#0911
<FLJ0912:5701<END
#0912
<FLJ0913:5702<END
#0913
<FLJ0914:5703<END
#0914
<FLJ0915:5704<END
#0915
<FLJ0916:5705<END
#0916
<FLJ0917:5706<END
#0917
<FLJ0918:5707<END
#0918
<FLJ0919:5708<END
#0919
<FLJ0920:5709<END
#0920
<INSERTSUPERFANCYCODEHERE
Also, if you can redo the battle, please unset all flags at the start of the match. Don't use skipflags. They only reset when you completely close the game (Esc-F2 DOES NOT reset them. I learned that the hard way).
Last edited: