Forum Discussion
#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.
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
- Midevil_Chaos8 days agoNew Scout
100% agree here. There are a lot of things they should modify. But not only that, I feel like no QA was made, especially when some things are seen by everyone. Ironically, the game did NOT crash for me in the 150+ hours I played. So... There's that!
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 Veilguard
143 PostsLatest Activity: 5 minutes agoRelated Posts
Recent Discussions
- 17 minutes ago
- 4 hours ago
- 6 hours ago