Thread: NPC speech text colours
-
December 4th, 2012, 21:16 #1
NPC speech text colours
When typing directly into the chat window, NPC speech text appears blue in colour, but when dragging it from a pre-prepared chat frame, it is black. Is there an easy way to make both of these the same colour? I don't like the discontinuity, which my players have picked up on.
-
December 4th, 2012, 22:08 #2
In my ruleset, there is additionally a GM's icon for NPC speech from the chat box, but not for NPC speechfrom ckickable speech text in modules.
My simplest workaround: I never use clickable text for NPCs - I always drag the text into the bottom of the chat box where you type messages, then hit 'Enter' to send the text with an ID I have defined with the "/ID" command.
Bit of a pain, but still way better than typing everything on the spot."A ship in harbor is safe, but that is not what ships are built for." - John Shedd
"Why is it every time we need to get somewhere, I get waylaid by jackassery?" - Dr. Thaddeus Venture
-- CA (Pacific time zone) --
-
December 4th, 2012, 22:17 #3
If I recall right you can do required changes into chat_chat.lua file (ruleset specific thing, but usally its named like that) by editing onDrop event/handler function. Can you be more specific which ruleset you need to adjust?
"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
December 4th, 2012, 22:36 #4
Sorry, I was assuming that it was a generic thing. I'm using the base 3.5 ruleset.
-
December 5th, 2012, 08:55 #5
Programmatical workaround for this in 3.5E ruleset is to replace file's
3.5E/desktop/scripts/chat_window.lua onDrop function with following snippet:
Code:function onDrop(x, y, draginfo) local sDragType = draginfo.getType(); if StringManager.contains(DataCommon.actions, sDragType) then ActionsManager.handleActionDrop(draginfo, nil); else local msg = {} msg.text = draginfo.getStringData() msg.mode = "story" -- sender local sender = draginfo.getDescription() if sender and sender ~= "" then msg.sender = sender msg.font = "chatnpcfont" msg.mode = "chat" end -- deliver chat message and stop further processing Comm.deliverChatMessage(msg) return true end end
"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
December 21st, 2012, 01:07 #6
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,570
Fixed this behavior in the v2.9.3 beta.
Basically, the onDeliverMessage script event was not being called on formatted text string drag and drop operations.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks