Majesty Gold HD

Majesty Gold HD

Customize Majesty!
Create and upload new Quests and Mods for Majesty HD!
Dracoceros 11 29 Jan, 2022 @ 12:40pm
2 New problems, code check needed.
Hey. So my code is doing two wierd things.

1) When randomnumber (3) is equal to (==) a value 0 to 3, it should kick off one of the four spawn functions. However, when running the said thread, it kicks off ALL FOUR at once.

2) More convoluted case. When listing "Special" and "Building" types on Player_2's side (who is not my team), the game will declare victory, after the flag is dismissed or the unit is killed.
< >
Showing 1-2 of 2 comments
Enerril 16 29 Jan, 2022 @ 6:35pm 
1) Contrary to what documentary says randomnumber is not (inclusive,inclusive) it is (inclusive,exclusive). so, randomnumber(3) will return 0 or 1 or 2. Might be the reason smth doesn't work as expected. Hard to say without code.

2) Code needed to be able to help
Last edited by Enerril; 29 Jan, 2022 @ 6:39pm
Dracoceros 11 4 Mar, 2023 @ 10:45am 
@Enerril Ah, that's strange that randomnumber is not inclusive as the doc says.

I don't exactly remember what the deal was with #2. More details when I find out where I had that problem.
< >
Showing 1-2 of 2 comments
Per page: 1530 50