Re: How do I create a game with only one champion?
Posted: Wed Nov 19, 2014 11:14 pm
Here's a guide to overwrite every property of a party member that can be overwritten. Make sure to do these in the order they are listed!
1. call cleanSetClass() in this script to remove all skills and skill bonuses and reset level to 1
2. remove all traits (other than the skill traits which were already removed in step 1) with Champion:removeTrait() (“aggressive”, “agile”, “athletic”, “aura”, “cold_resistant”, “evasive”, “fire_resistant”, “fist_fighter”, “head_hunter”, “healthy”, “lightning_speed”, “natural_armor”, “poison_resistant”, “skilled”, “strong_mind”, “tough”)
3. set all stats and stat maxes with Champion:setStat() and Champion:setStatMax() (health, energy, strength, dexterity, vitality, willpower, protection, evasion, resist_shock, resist_fire, resist_cold, resist_poison, resist_shock)
4. add any traits or skills you want
(you should be able to set the name, race, portrait, and sex any time that you want)
If you want to level up the champion but don't want the level up sound to play, you can simply redefine the "level_up" sound to be silence, and define the original level_up sound with some other name and play that in the party.onLevelUp hook.
The only thing you can't overwrite is the increased movement speed that the party gets from playing in Toorum mode.
1. call cleanSetClass() in this script to remove all skills and skill bonuses and reset level to 1
2. remove all traits (other than the skill traits which were already removed in step 1) with Champion:removeTrait() (“aggressive”, “agile”, “athletic”, “aura”, “cold_resistant”, “evasive”, “fire_resistant”, “fist_fighter”, “head_hunter”, “healthy”, “lightning_speed”, “natural_armor”, “poison_resistant”, “skilled”, “strong_mind”, “tough”)
3. set all stats and stat maxes with Champion:setStat() and Champion:setStatMax() (health, energy, strength, dexterity, vitality, willpower, protection, evasion, resist_shock, resist_fire, resist_cold, resist_poison, resist_shock)
4. add any traits or skills you want
(you should be able to set the name, race, portrait, and sex any time that you want)
If you want to level up the champion but don't want the level up sound to play, you can simply redefine the "level_up" sound to be silence, and define the original level_up sound with some other name and play that in the party.onLevelUp hook.
The only thing you can't overwrite is the increased movement speed that the party gets from playing in Toorum mode.