Ok, so I made a new indoor scene entry in module_scenes.py and then referenced it in the town menu in addition to creating a mission template for it (it is more or less empty so far, but I will be putting in a lot of code later). I also made a new passage for it in the town scene. I got the passage to work and I can access the scene from walking around town and edit it. So far so good.
Now I want to spawn the player character as well as another character within the scene. I placed two separate entry points, entry point 0 and entry point 1. I have tried a few different methods, but so far I haven't been able to get the agents to spawn when I enter the scene No agents spawning and my camera is just floating in the air.
This is the code for the scene entry
Here is the code entry in module_game_menus.py (the commented out lines are other methods that I have tried previously)
code in mission templates:
Now I want to spawn the player character as well as another character within the scene. I placed two separate entry points, entry point 0 and entry point 1. I have tried a few different methods, but so far I haven't been able to get the agents to spawn when I enter the scene No agents spawning and my camera is just floating in the air.
This is the code for the scene entry
Code:
("uxkhal_fighting_guild",sf_indoors, "interior_tavern_b", "bo_interior_tavern_b", (-100,-100),(100,100),-100,"0",
["exit"],[]),
Here is the code entry in module_game_menus.py (the commented out lines are other methods that I have tried previously)
Code:
("fighting_school",
[
(eq,1,0),
],"Enter the Fighting School.",
[
(eq, "$current_town", "p_town_7"),
#(modify_visitors_at_site,"scn_tutorial_training_ground"),
(reset_visitors, 0),
#(set_player_troop, "trp_player"),
(set_visitor,0,"trp_player"),
(set_visitor,1,"trp_frederick"),
(set_jump_mission,"mt_uxkhal_fighting_guild"),
(jump_to_scene,"scn_uxkhal_fighting_guild"),
#(entry_point_get_position, pos1, 0),
#(set_spawn_position, pos1),
#(spawn_agent,"trp_player"),
#(entry_point_get_position, pos2, 1),
#(set_spawn_position, pos2),
#(spawn_agent,"trp_frederick"),
#(add_visitors_to_current_scene,0,"trp_player",1,0,0),
#(add_visitors_to_current_scene,1,"trp_frederick",1,0,0),
(change_screen_mission),
],"Door to the Fighting School."),
code in mission templates:
Code:
(
"uxkhal_fighting_guild",mtf_arena_fight,-1,
"You enter the fighting school.",
[
(0,mtef_visitor_source|mtef_team_0,af_override_weapons,0,1,[itm_heavy_practice_sword]),
(0,mtef_visitor_source|mtef_team_0,af_override_weapons,aif_start_alarmed,1,[itm_heavy_practice_sword]),
],
[
],
),