Character Creation Menus

正在查看此主题的用户

Rotnroller89

Recruit
I'm having some rough issues with editing my character creation menus. I can do a basic set by replacing the current dialouge and options. However, I run into issues when I try and play with it. I don't have my script lines in front of me. What I'm trying to do is get so I have my initial options which essentially pick your class (Veteran Warrior, Hunter, etc etc.) each have their own set of options based on that choice. Example: If you pick option as being a noble you get different options then if you picked hunter.

Is this possible? If so how do I need to script it and or can I just get an example of a script that would do this.
 
If the same menu will be used for more than one option, then add (eq, "$background_whatever", cb_whatever), in the condition (look up the cb_constants in module_constants). Alternatively, just make separate menus for each choice and change (jump_to_menu,"mnu_start_character_4"), to your new menu reference.
 
I must have been doing it wrong originally cause it makes sense just to copy that over and just renumber it. I should do that for each option yes. So if I 7 options to choose from I should just number the new pages accordingly and link them with the proper one with the jump_to_menu script right?

Thanks!
 
You don't even have to use constants they already use, you can make your own and assign them for each choice. Here is how it would look for an example.


In game_menus.py
插入代码块:
 (
    "start_character_1",mnf_disable_all_keys,
    "Which class would you like to be?",
    "none",
    [(str_clear,s10), ],
    [
    ("start_warrior",[],"I want to be a warrior!",[
      (assign,"$class_choice",warrior),
      (str_store_string,s10, "@warrior"),
	(jump_to_menu,"mnu_class_choice_2"),
    ]),
    ("start_hunter",[],"I want to be a hunter!",[
      (assign,"$class_choice",hunter),
      (str_store_string,s10, "@hunter"),
     (jump_to_menu,"mnu_class_choice_2"),
    ]),

(
    "class_choice_2",0,
    "Which type of {s10} would you like to be?",
    "none",
    [],
    [
      ("warrior",[(eq, "$class_choice", warrior),
          ],"A veteran warrior!",[
      (assign,"$class_choice_2", vet_warrior),
	(jump_to_menu,"mnu_choose_skill"),
    ]),
      ("hunter",[(eq, "$class_choice", hunter),
          ],"A crossbow hunter!",[
      (assign,"$class_choice_2", cross_hunter),
	(jump_to_menu,"mnu_choose_skill"),
    ]),


And then you can just declare those variables in constants.

插入代码块:
warrior = 1
hunter = 2

vet_warrior = 1
cross_hunter = 2

Hope that helps, if at all :razz:
 
Thanks Whatshappenin,

that acctually helped alot, my goal for it at a later point is going to make each option related to a faction in the mod I'm working on. That way stats and starting gear are related more to how your character would play if he/she were from that faction.
 
后退
顶部 底部