K2muyouxiaojiji 说:
Problems occured with part 1, I changed codes with "script_game_receive_network_message",
Gold is one of thing which you don't need sync manualy. Game do this always for you.
In my opinion ; You need
Set default gold to 0
Create global variable to check/set player troop.
For example you set archer id as 3. (you need to do it somewhere after troop select , maybe in prst code)
(assign, $g_troopid, 3),
Use operation to set player gold.
插入代码块:
(eq, $g_troopid, 3),
(player_set_gold, <player_id>, <value>),
But of course you need to do it in correct places, its not that easy.
You need do something more,fixing default gold script is required.