I want to create opponents, let's say they are skeletons that crumble into bones after defeat, but every hour of the game time these bones are reassembled into a skeleton again. And to permanently kill them it is necessary to destroy the tombstone on the location, which causes their resurrection.
Moreover, I want to do this without creating a separate switch for each skeleton and generally use as few common events and switches as possible.
What I've done so far:
In trying to figure out how not to create a separate switch for each skeleton, I accidentally invented the buffering technique for myself. It actually works so that when one skeleton dies, it fills one unoccupied memory cell (a switch, which is a total of 5). That is, if you kill one skeleton, the system looks at which buffer cells (switches) are free and switches one unoccupied.
In my general time flow event, I built in an event that every time minutes >=60 resets minutes to 0, adds one hour, and turns off all resurrection switches, so skeletons are resurrected.
And everything actually works, but then the question arises: why am I writing this here?
Because of that:
1)The first page is a basic event page where the battle happens and one switch activates.
2)The second page is a resurrection page created just for animated transition between dead and alive states, it just plays resurrection animation when resurrection switches are off and then goes back to the first page again.
3-7)And all of the rest pages are 5 buffer cells. If Switch 1 is active, 3 page will be active where bones just lies on the ground. If the first 3 switches are occupied, 4 switch will turn on and the 6 page will be active, which do the same, shows lying bones.
8)And also I forgot to add the 8 page which will be active when the tombstone will be destroyed(and there I have to create another switch like "location 1 tombstone" = off).
So I just wanted to know how would you do it and is there any way to reduce the number of pages, maybe I'm missing something.
Moreover, I want to do this without creating a separate switch for each skeleton and generally use as few common events and switches as possible.
What I've done so far:
In trying to figure out how not to create a separate switch for each skeleton, I accidentally invented the buffering technique for myself. It actually works so that when one skeleton dies, it fills one unoccupied memory cell (a switch, which is a total of 5). That is, if you kill one skeleton, the system looks at which buffer cells (switches) are free and switches one unoccupied.
In my general time flow event, I built in an event that every time minutes >=60 resets minutes to 0, adds one hour, and turns off all resurrection switches, so skeletons are resurrected.
And everything actually works, but then the question arises: why am I writing this here?
Because of that:
1)The first page is a basic event page where the battle happens and one switch activates.
2)The second page is a resurrection page created just for animated transition between dead and alive states, it just plays resurrection animation when resurrection switches are off and then goes back to the first page again.
3-7)And all of the rest pages are 5 buffer cells. If Switch 1 is active, 3 page will be active where bones just lies on the ground. If the first 3 switches are occupied, 4 switch will turn on and the 6 page will be active, which do the same, shows lying bones.
8)And also I forgot to add the 8 page which will be active when the tombstone will be destroyed(and there I have to create another switch like "location 1 tombstone" = off).
So I just wanted to know how would you do it and is there any way to reduce the number of pages, maybe I'm missing something.