Editing what the cheats do?

正在查看此主题的用户

Stildawn

Squire
Hi All

Im testing some modifications Ive made... Im just wonder is there anywhere where you can edit what the cheats do? Especially the amount of experince the clt + x gives? Would make my testing a hell of a lot faster...

Thanks
 
I think the Native cheats are hardcoded. You can however always code in your own "cheats" using the module system.
 
Ah this is taking ages...

Anyone want to code me a quick cheat then? Just changing clt x to give say 10000 xp instead of a 1000 would help me lots...
 
i think you cant change but you can add new ones like:
(key_is_down, key_cntrl),
(key_is_clicked, key_x),
(add_xp_to_troop, 100000, "trp_player"),
 
Stildawn 说:
Ah this is taking ages...

Anyone want to code me a quick cheat then? Just changing clt x to give say 10000 xp instead of a 1000 would help me lots...
Here is a cheats that I use:
插入代码块:
      ("action_give_xp_to_player",[],"Give xp to player.",
       [
	   (store_skill_level, ":player_trainer", skl_trainer, "trp_player"),
	   (val_max, ":player_trainer", 1),
	   (val_mul, ":player_trainer", 5000),
	   (add_xp_to_troop, ":player_trainer", "trp_player"),
	   (assign, reg33, ":player_trainer"),
	   (display_message, "@Player gained {reg33} experiences."),
       ]
       ),
	   
	  ("action_give_gold_to_player",[],"Give 50,000 gold to player.",
       [
	   (troop_add_gold, "trp_player", 50000),
       ]
       ),
	   
	   ("action_heal_party",[],"Heal party.",
       [
	   (heal_party, "p_main_party"),
       ]
       ),

插入代码块:
      ("action_train_party",[],"Train party members.",
       [
	   (store_skill_level, ":player_trainer", skl_trainer, "trp_player"),
	   (val_max, ":player_trainer", 1),
	   (val_mul, ":player_trainer", 500),
	   (assign, ":xp_gain", 0),
	   (party_get_num_companion_stacks, ":num_stack", "p_main_party"),
	   (try_for_range_backwards, ":i_stack", 0, ":num_stack"),
		(party_stack_get_troop_id, ":troop_id", "p_main_party", ":i_stack"),
		(party_stack_get_size, ":stack_size", "p_main_party", ":i_stack"),
		(store_mul, ":xp_gain", ":player_trainer", ":stack_size"), 
		(neg|is_between, ":troop_id", heroes_begin, heroes_end),
		(neq, ":troop_id", "trp_player"), 
		(party_add_xp_to_stack, "p_main_party", ":i_stack", ":xp_gain"),
	   
	   (assign, reg33, ":xp_gain"),
	   (display_message, "@Party gained {reg33} experiences."),
	   
	   (try_end),
       ]
       ),
 
后退
顶部 底部