I want when the two pillars are destroyed I have the victory

(Comida Japonesa) #1

hi how are you, i need help, i made two pillars to be destroyed and i also put the script so that after i destroy the two objects i don’t win, why is it?

mapadeteste40.pk3 (50.5 KB)

(WuTangH) #2

the most important thing is that you are missing script_multiplayer entity in your map, which causes that your game_manager scriptblock is not read in-game.
Also, accums were a little messy. Pillars_counter script was adding values to accum 5, but at the end of the game, it was looking for accum 1, which was not needed at all.
I added the script_multiplayer to the map, and cleaned up the script. Also added some more explanation inside the script. Hope it helps.

mapadeteste40_x.pk3 (40.9 KB)

(Comida Japonesa) #3

Thank you for taking my doubts , I wanted to ask you something how does the:

accum abort if equal

accum abort if not equal

accum set

global accum

and because I get confused with these types of calculations I would like you to explain in detail how these calculations work , please