Comments (6)
Yes, a separate plugin please. I was going to get to this eventually, but if you've the time, dive right in!
I also want to include a way to embed nwscript snippets directly in the convo text, so you don't need as many scripts.
from unified.
I'm finishing up a few other things so I won't be starting it for a while. But if it's still hanging out here in a few days I can try to dig into it. I'm sure I'll have questions!
from unified.
Remember, if you want to expose the conversation functions as events, you can use the cross plugin messaging bus (Messaging.hpp) to broadcast the event. StickyCombatModes used to do it for SetCombatMode, like so:
messaging->BroadcastMessage("NWNX_EVENT_PUSH_EVENT_DATA", { "MODE", std::to_string(newMode + 1) } );
messaging->BroadcastMessage("NWNX_EVENT_SIGNAL_EVENT", { "NWNX_ON_MODE_ON", ObjectIDToString(thisPtr->m_idSelf) });
This is really powerful, because it allows you to broadcast events from any plugin. NWScript users can even make their own events and broadcast event data, too.
from unified.
If you could also add the following two methods, which were part of the old nwnx_funcs, but I'm fairly certain they don't exist in the new nwnx, I'd appreciate it! Not sure if they would actually fit in a nwnx_conversation plugin and not in nwnx_creature. I leave that up to you guys to decide.
The prototypes:
string GetConversation(object oCreature);
&
void SetConversation(object oCreature, string sConv);
from unified.
The getter exists in nwnx_object.nss:
// Returns the dialog resref of the object.
string NWNX_Object_GetDialogResref(object obj);
Setter is missing, we'll add it.
from unified.
bugscrub: This is all done and can be closed.
from unified.
Related Issues (20)
- NWNX_TWEAKS_* issue on .35 server HOT 13
- Segmentation fault related to AI / Henchman
- NWNXLib::API::Constants::SavingThrowType is missing a a value for "Paralysis" (=20) HOT 3
- NWNX_Events: ON_COMBAT_EXIT does not hook (Must sub to ON_COMBAT_ENTER) HOT 1
- Event on encumbered
- Event for excessive pathfinding instructions
- NWNX_Creature_SetSavingThrowModifier feature request
- Feature request: DM Chooser and Creator windows/data added to nwnx_events
- DAMAGE_TYPE_BASE_WEAPON doesn't propogate if added in ResolveDeathAttackHook HOT 2
- Add 'NWNX_Player_SetBicFileName' HOT 3
- nwnx func quastion HOT 1
- NWNX_Weapon hooks CNWSCreatureStats::GetWeaponFinesse and replaces it, so it ignores baseitem.2da values.
- 'development' folder not working with newest NWNX files? HOT 2
- FEATURE REQUEST: Text Label for NWNX_PLAYER_TIMING_BAR_CUSTOM()
- Core: _ZN7NWNXLib8Platform13GetStackTraceB5cxx11Eh
- NWNX 8193.36-9 (b12b114856) has crashed. Fatal error: Segmentation fault (11). HOT 15
- nwnx_signal_handler should print the nwscript context too
- NWNX_ON_DETECT_ENTER_* Events Get Signaled on Both Enter and Exit
- NWNX_Creature_GetSpecialAbilityCount doesn't count removed abilities (with id = -1) HOT 2
- Feature Request: Add a way to return Number of Inventory Pages a Store/Creature/Container Has
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unified.