DICE PACKS BUNDLE
  1. #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.

  2. #2
    dr_venture's Avatar
    Join Date
    Apr 2009
    Location
    Yosemite, CA
    Posts
    1,125
    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) --

  3. #3
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    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!

  4. #4
    Sorry, I was assuming that it was a generic thing. I'm using the base 3.5 ruleset.

  5. #5
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    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
    I am sure that you can do it in more better way, but this is quickshot reponse to give guides what to do
    "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!

  6. #6
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in