How to create spawn points?

正在查看此主题的用户

Khal

Regular
I want to learn how to make my own mod and decided to start out easy, so i made this whole new faction called "barbarian invaders" and a lot of troops to them everything worked ok but i cant get them in game cause i dont know how to create a spawn point, can anone help me, i use thogrims map editor and the unofficial editor.
I also made a whole new map with new town names and a new town called "barbarian invaders landing camp" but when i exited thogrims map editor and saved, i got this error message saying "one or more spawns / towns are on an impassable title, consider moving them to prevent in game crashes" what?
 
If you want to have your new troops spawn then you will first need to create a party template for them. Once you have done that find an existing spawn trigger and copy it, you'll need to find two one that sets a "peak" number of parties to spawn. Copy that and change the name of the variable and the number if you want. Then find one which that looks something like this:

插入代码块:
(assign, "$pin_faction", "fac_swadians"),
                         (assign, "$pin_party_template", "pt_swadian_scouts"),
                         (assign, "$pin_limit", "$peak_swadian_scouts"),
                         (call_script,"script_spawn_party_at_faction_town_if_below_limit"),
Change the factions, party template and the peak variable to the one you set earlier. The new party tempplate should spawn from the town you created.
Khal 说:
i got this error message saying "one or more spawns / towns are on an impassable title, consider moving them to prevent in game crashes" what?

Just as it says one of the towns or spawn points is on a terrain type that cannot be walked on (Mountain,Ocean and River).

Oh and one last thing, USE PYTHON! It not as hard as it looks and support for the unofficial editor has stopped. once the new vrsion comes out then you won't be able to use the unoffical editor.
 
Iberon 说:
If you want to have your new troops spawn then you will first need to create a party template for them. Once you have done that find an existing spawn trigger and copy it, you'll need to find two one that sets a "peak" number of parties to spawn. Copy that and change the name of the variable and the number if you want. Then find one which that looks something like this:

插入代码块:
(assign, "$pin_faction", "fac_swadians"),
                         (assign, "$pin_party_template", "pt_swadian_scouts"),
                         (assign, "$pin_limit", "$peak_swadian_scouts"),
                         (call_script,"script_spawn_party_at_faction_town_if_below_limit"),
Change the factions, party template and the peak variable to the one you set earlier. The new party tempplate should spawn from the town you created.
Khal 说:
i got this error message saying "one or more spawns / towns are on an impassable title, consider moving them to prevent in game crashes" what?

Just as it says one of the towns or spawn points is on a terrain type that cannot be walked on (Mountain,Ocean and River).

Oh and one last thing, USE PYTHON! It not as hard as it looks and support for the unofficial editor has stopped. once the new version comes out then you won't be able to use the unofficial editor.

In simple triggers idn what to do....you must believe me when i say "I'm new"
and i want to know how to add spawn points if you have the time.

-I Pkz I
:twisted:
 
后退
顶部 底部