Town Crier script?
Dembel
Member Posts: 8
Hey,
I'm trying to set up a town crier NPC for a PW that will transmit a PC's last talk line as a shout or something similar — so players can send accouncements, calls to gather up for a small fee without having access to shouts themselves.
How would I go about that? I wasn't able to find anything that will work for this on the LS script generator and would really appreciate some help if anyone knows what I mean.
I'm trying to set up a town crier NPC for a PW that will transmit a PC's last talk line as a shout or something similar — so players can send accouncements, calls to gather up for a small fee without having access to shouts themselves.
How would I go about that? I wasn't able to find anything that will work for this on the LS script generator and would really appreciate some help if anyone knows what I mean.
0
Comments
https://neverwintervault.org/project/nwn1/prefab/creature/simple-town-crier
These scripts will likely need tweaking to your exact requirements, so you'll probably need to learn some scripting, but they might be a starting point.
I'm actually using one of these for something else, but what I meant is a little different — I'd more or less like a way for players to be able to pay an NPC to send a shout or a shout-esque message so people can look for groups and spread news around without everyone having access to shout at all times. Sorry, maybe the title was a bit misleading.
I would be absolutely delighted if you could help me out.
Setup the Crier conversation how you want it.
For the pay to spread the word conversation bit. In the Text appears when slot put: In the variables section under the script name, enter num on the left (name) and the gold amount they need to pay on the right (value). Be sure and click on the boxes multiple times. They're wishy-washy and don't always save what you enter if you don't.
(Doing it this way, the same script can be used any time you want to enable a conversation option based on how much gold the player has.)
In the Actions taken slot put: Enter the same num and gold amount in the variables section.
Be sure to let the player know that they need to use the whisper chat. You can change this, but it makes the most sense to me.
Lastly, in the module events, OnPlayerChat slot add: I did this the the floating text way because that's how I had already done similar things. It can, however, be changed to find the crier NPC and make them shout the message. I think NPCs are still allowed to shout when players are not. I seem to remember a dragon that would roar when disturbed on a server that had the shout disabled.
Thanks a bunch, I really appreciate it. I'll give this a try when I have some time to play around on the toolset.
I'm always up for some live testing though.
That looks like it would work. I was offering an alternative method and I hadn't looked too closely at the original script. My bad.