Forum Discussion
Midevil_Chaos
Rising Scout
#include <EASTL/string.h>
#include <Frostbite/Core/FbCore.h>
#include <Frostbite/Game/GameCommon.h>
class RookInteractions : public fb::GameComponent
{
public:
int m_RookAge;
void InteractWithNPC(const eastl::string& npcName)
{
if (m_RookAge >= 18 && m_RookAge <= 25)
{
FB_LOG("NPC %s treats Rook as a young adult.", npcName.c_str());
// Add specific interactions for young adult Rook
}
else if (m_RookAge > 25 && m_RookAge <= 40)
{
FB_LOG("NPC %s treats Rook as an experienced adult.", npcName.c_str());
// Add specific interactions for mature adult Rook
}
else if (m_RookAge > 40)
{
FB_LOG("NPC %s treats Rook with deference due to age.", npcName.c_str());
// Add specific interactions for older Rook
}
else
{
FB_LOG("NPC %s treats Rook as very young.", npcName.c_str());
// Add specific interactions for very young Rook
}
}
};
FB_IMPLEMENT_COMPONENT(RookInteractions);
The code can be modified with an "if" statement calling on the age YOU choose for her. Such as: You select an age, then If Rook is between X age, then she should be treated Y way by Z member. Pretty simple to me.
Something like the code snippet provided. Then, more lines are added by voiceovers etc. Sure a long process altogether, but simple.
dogportrait
2 months agoNew Scout
I think it's just a matter of whether they care enough or not to implement this :( Which I really hope they do. Thanks for breaking it down though, interesting to see the actual code behind it
About Dragon Age The Veilguard General Discussion
Enter the world of Thedas, and join us in the community forums to talk about your experiences in Dragon Age: The Veilguard199 PostsLatest Activity: 32 minutes ago
Recent Discussions
- 2 days ago
- 2 days ago