Coding Issue; Makes No Sense; Losing Mind A Little Bit...

Users who are viewing this thread

N0ught

Sergeant Knight at Arms
Alright so can someone PLEASE tell me why changing the following causes the arena to crash?

Original Code:
Code:
  ("action_corpsewife2_step",0,
   ".\
 ^^Perform the ritual of The Silent Step?\
 ^^Ingredients: Woolen Hose, Blue Hose.",
   "none",
   [
],
    [
      ("camp_action_corpsewife2_step_create",[(player_has_item, "itm_woolen_hose"),(player_has_item, "itm_blue_hose"),],"Yes.",
       [
        (jump_to_menu, "mnu_action_corpsewife2_step2"),
        ]
       ),

      ("camp_action_corpsewife2_step_back",[],"No.",
       [
        (jump_to_menu, "mnu_corpsewife2"),
        ]
       ),
      ]
  ),

  ("action_corpsewife2_step2",0,
   "...",
   "none",
   [
],
    [
      ("action_create_corpsewife2_step2_continue",[],"Discreet...",
       [(troop_remove_item,"trp_player", "itm_woolen_hose"),
        (troop_remove_item,"trp_player", "itm_blue_hose"),
        (val_add, "$Corpsedecay", 1),
        (assign, "$Corpsefeet", 1),
        (try_begin),
        (eq, "$Corpseprogress", 3),
        (display_message, "@You learn from this dark secret... a little too much..."),
        (display_message, "@Intelligence +1! Charisma -1!"),
        (troop_raise_attribute,"trp_player",2,1),
        (troop_raise_attribute,"trp_player",3,-1),
        (assign, "$Corpseprogress", 4),
        (try_end),
        (change_screen_map),
        ]
       ),
      ]
  ),

New Code (Causes crashes during battle):
Code:
  ("action_corpsewife2_step",0,
   "To preserve your Corpsewife's lower extremities a little longer, they may be covered with woolen hose, and her severed right big-toe can be wrapped in blue hose,\
 and kept in your left pocket - to remind her of the need for discretion in your affairs...\
 ^^Perform the ritual of The Silent Step?\
 ^^Ingredients: Woolen Hose, Blue Hose.",
   "none",
   [
],
    [
      ("camp_action_corpsewife2_step_create",[(player_has_item, "itm_woolen_hose"),(player_has_item, "itm_blue_hose"),],"Yes.",
       [
        (jump_to_menu, "mnu_action_corpsewife2_step2"),
        ]
       ),

      ("camp_action_corpsewife2_step_back",[],"No.",
       [
        (jump_to_menu, "mnu_corpsewife2"),
        ]
       ),
      ]
  ),

  ("action_corpsewife2_step2",0,
   "...",
   "none",
   [
],
    [
      ("action_create_corpsewife2_step2_continue",[],"Discreet...",
       [(troop_remove_item,"trp_player", "itm_woolen_hose"),
        (troop_remove_item,"trp_player", "itm_blue_hose"),
        (val_add, "$Corpsedecay", 1),
        (assign, "$Corpsefeet", 1),
        (try_begin),
        (eq, "$Corpseprogress", 3),
        (display_message, "@You learn from this dark secret... a little too much..."),
        (display_message, "@Intelligence +1! Charisma -1!"),
        (troop_raise_attribute,"trp_player",2,1),
        (troop_raise_attribute,"trp_player",3,-1),
        (assign, "$Corpseprogress", 4),
        (try_end),
        (change_screen_map),
        ]
       ),
      ]
  ),

... I literally add two lines of text, and it makes it crash if i enter the arena. If I remove the two lines of text everything runs fine. Everything compiles fine both ways.

This makes no sense...
 
Also, if I add one or two apostrophes instead of text, it tells me there is an unexpected end of line in the file. on loading the game, and crashes...

:???:
 
Have you tried putting it all on one line and see what happens?

Code:
"To preserve your Corpsewife's lower extremities a little longer, they may be covered with woolen hose, and her severed right big-toe can be wrapped in blue hose, and kept in your left pocket - to remind her of the need for discretion in your affairs...^^Perform the ritual of The Silent Step?^^Ingredients: Woolen Hose, Blue hose.",
 
Back
Top Bottom