6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/tyrano_dsl/writing_words/set_character_stance.rb', line 6
def run(writing_context, world, word_location, parameters)
character = world.characters[parameters[:name]]
character_stance = parameters[:stance]
writing_context.add_asset_loading(
word_location,
character.stances[character_stance].long_target_file_name
)
writing_context.append_content(
word_location,
"[chara_mod name=\"#{character.name}\" cross=\"true\" storage=\"chara/#{character.stances[character_stance].short_target_file_name}\"]"
)
end
|