What is worng whit this code?

Users who are viewing this thread

DarkAnd

Sergeant Knight at Arms
I have gone past the last 3 hours trying to find out what was causing a bug which made the player dont spawn, just to end up geting a "list indices must be intregers" error.
  (
    "lead_charge2",mtf_battle_mode,charge,
    "You lead your men to battle.",
    [ (1,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(10,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(11,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(4,mtef_visitor_source|mtef_team_2,0,aif_start_alarmed,1,[]),
(5,mtef_visitor_source|mtef_team_2,0,aif_start_alarmed,1,[]),
(6,mtef_visitor_source|mtef_team_2,0,aif_start_alarmed,1,[]),
(7,mtef_visitor_source|mtef_team_2,0,aif_start_alarmed,1,[]),
(8,mtef_visitor_source|mtef_team_2,0,aif_start_alarmed,1,[]),
(9,mtef_visitor_source|mtef_team_2,0,aif_start_alarmed,1,[]),
],
    [
  (ti_before_mission_start,0,ti_once,[],
          [(troop_set_type,"trp_player",0),
            (modify_visitors_at_site,"scn_persians"),
            (reset_visitors),
    (set_visitor,0,"trp_player"),
            (set_visitor,1,"trp_rifleman"),
            (set_visitor,2,"trp_persian")]),

        (0, 0, ti_once, []
        [(add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1),
          (add_reinforcements_to_entry,10,1)
          ]),
        (2, 2, 0, []
        [(add_reinforcements_to_entry,4,2),
          (add_reinforcements_to_entry,5,2),
          (add_reinforcements_to_entry,6,2),
          (add_reinforcements_to_entry,7,2),
          (add_reinforcements_to_entry,8,2),
          (add_reinforcements_to_entry,9,2)])
],
    ),
 

DarkAnd

Sergeant Knight at Arms
ok fix one 2 apears.
Now the "persians" are spawing on the wrong side.
And I get a invalid entry no for add_reinforcements.
 
Top Bottom