We addressed editing goals from the character profile page, but what about during character creation? That actually will require us to modify another set of templates and handlers. Here’s a starting point - see if you can figure out how to add goals to chargen:
aresmush/plugins/profile/custom_char_fields.rb
(get_fields_for_chargen
and save_fields_from_chargen
)ares-webportal/app/templates/components/chargen-custom-tabs.hbs
and ares-webportal/app/templates/components/chargen-custom.hbs
ares-webportal/app/components/chargen-custom.js
return []
if everything’s OK, or a list of messages like return [ "Something was bad." ]
or return [ "Something was bad.", "Something else was also bad." ]
.
Don’t forget, you can always ask for help if you get stuck.