Aller au contenu

Photo

Scripting animations. Spell script template/example request.


2 réponses à ce sujet

#1
A1x2e3l

A1x2e3l
  • Members
  • 105 messages
DA:O cutscenes are great but IMHO they have a huge
disadvantage: no player interaction, as well as no possibility of free PC
camera navigation in a 3D scene. Basically they are movies created with game
tools/resources. It would be nice to hook execution of a certain animation (PC
or NPC) to a selected hotkey, like it is done for some game spells. Here is an
example of what I would like to achieve: press a reserved key and a selected
NPC dances for you. Let’s forget for a while our lack of understanding of the
game animation system (e.g. how to create, etc. this dancing animation) and use
one of the existing sequences e.g. sit on the ground. PC gives an order
(spell/hotkey) and Alistair sits not in a cutscene but in the game world. Next step could be more complex:
couple animations – “Shale, give me a hug!”. I am not a programmer, C++ is too
complicated for me. I tried to search in the game/toolset files for a spell
scripting example without any success. Any ideas, suggestions, help are highly
appreciated.
Thank you.
:)

Modifié par A1x2e3l, 04 décembre 2009 - 02:20 .


#2
BryanDerksen

BryanDerksen
  • BioWare Employees
  • 273 messages
During a cutscene script execution and AI is suspended so there's no way to dynamically affect something in mid-scene. However, each line in a conversation is basically a separate cutscene so it should be pretty straightforward to have a dancing and a non-dancing version of the scene to choose from.



Having creatures execute animations in the game world is simpler, there are functions you can call to apply animations directly. Getting two creatures lined up to share a hugging animation might be trickier, I'm not sure what would be involved in that. Must be possible, though - combat animations work together commonly enough.

#3
A1x2e3l

A1x2e3l
  • Members
  • 105 messages
I see.
What are creatures? Are PC, humanoid party members, other
game humanoid NPCs (elves, dwarfs…) also creatures in this sense?
Does game engine allow to add new animations that can be
called via scripts, or it is possible only to replace existing sequences (names
are hardcoded)?
Could you recommend an example of such (creature animation
related) scripts?

I am mainly interested in in-game animations, not in
cutscenes.

Thank you for answering.

:)

Modifié par A1x2e3l, 05 décembre 2009 - 01:04 .