STAR TREK 2d20
  1. #3121
    Thanks.

  2. #3122

  3. #3123
    Quote Originally Posted by Brotherkelly View Post
    Hi Damned



    I created an extension for Battletech last year and am now getting the same deprecated message. Looking at the code within the MoreCore files, am I right in saying that I will need to change all instances of ActorManager.getActor to ActorManager.resolveActor? Also, do I no longer need to specify the character type (pc or npc) as shown below?

    local rActor = ActorManager.getActor("pc", window.getDatabaseNode());

    should now become

    local rActor = ActorManager.resolveActor(window.getDatabaseNode() );
    I have updated the extension and no longer get the deprecated error. There were a few other lines I needed to amend when using the OOBMesssage but all good now, thanks.
    Last edited by Brotherkelly; March 19th, 2022 at 09:57.

  4. #3124

  5. #3125
    Quote Originally Posted by damned View Post
    There is. You do need to edit the XML.
    in file \campaign\record_char_more.xml
    change lines 527, 536, 545 change the 9 to 13... experiment with what works for you
    Hi Damned, currently importing Super Squadron from the 80's into MoreCore. I realise the above is likely pre-unity but I did the above, repacked it all and Unity started throwing errors re unknown rule system. I had to remove the .pak and allow FG to reload it and of course this wiped out the changes. Most attributes are double digits in Super Squadron, so how do I set the fields to show them?

    Also, is there a way to set a parameter value by using two other fields. I want to have a range modifier calculated and displayed in a parameter field (p1) by including 2 reference fields (a) and (b). Is there some way to get (p1) to display (a)+(b)?

    Finally, there is a stat that may contain a static field or a die in Super Squadron that gets applied to damage. Is there a way that I can make a damage roll that adds that static amount or die to the roll?
    Last edited by Naron5; March 29th, 2022 at 02:59.

  6. #3126
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,638
    Blog Entries
    1
    Hi Naron5

    There is an extension somewhere called Wide Peas that will make the change for you.
    Make sure you are using MoreCore from the Forge now - that extension is still hidden somewhere in the forums - a search will reveal it.

    No - there is nothing in MoreCore that will do what you want with showing a calculated value in a P field.
    You would likely have to think about it differently or write an extension.

  7. #3127
    Quote Originally Posted by damned View Post
    Hi Naron5

    There is an extension somewhere called Wide Peas that will make the change for you.
    Make sure you are using MoreCore from the Forge now - that extension is still hidden somewhere in the forums - a search will reveal it.

    No - there is nothing in MoreCore that will do what you want with showing a calculated value in a P field.
    You would likely have to think about it differently or write an extension.
    Thanks mate!

  8. #3128
    I took the srun4 die roller and modified it.
    I modified the onLanded to include:
    Code:
    	for _,v in ipairs (aDice) do
    		v.exploded = false;
    		local dieType = v.type;
    		if v.result >= nSucessThreshold then
    			nSuccesses = nSuccesses + 1;
    			dieType = "d3006"
    			if v.result == getDieMax(v.type) and nLimit == 0 then
    				table.insert(aRerollDice, v.type);
    				dieType = "d2006";
    				v.exploded = true;
    			end
    		elseif v.result <= nGlitchThreshold then
    			dieType = "d1006";
    			nFails = nFails + 1;
    		end
    		v.type = dieType;
    		table.insert(aSavedDice, v);
    	end
    This is similar to other code I've seen in other dice rollers for changing the color of the die.
    They show #d# at the heading for the chat message but I'm getting:
    test dice results.png

    Anyone have a suggestion on how to get it to display all the d2006, d1006 and d3006 as d6?

  9. #3129
    If the file, campaign\record_cas.xml there is:
    Code:
    <windowclass name="cas_stats">
    	<sheetdata>
    		<string_column name="clichatcommand">
    			<script>
    				function onLoseFocus( )
    				end
    			</script>
    		</string_column>
    	</sheetdata>
    </windowclass>
    How in an extension can I replace the <script> section with either a file or just the text.
    I don't want to replace the entire windowclass and have to copy all of what is in morecore for this windowclass.
    I've tried using mergerule in several places but to no effect.

  10. #3130
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,638
    Blog Entries
    1
    Quote Originally Posted by rmilmine View Post
    I took the srun4 die roller and modified it.
    I modified the onLanded to include:
    Code:
    	for _,v in ipairs (aDice) do
    		v.exploded = false;
    		local dieType = v.type;
    		if v.result >= nSucessThreshold then
    			nSuccesses = nSuccesses + 1;
    			dieType = "d3006"
    			if v.result == getDieMax(v.type) and nLimit == 0 then
    				table.insert(aRerollDice, v.type);
    				dieType = "d2006";
    				v.exploded = true;
    			end
    		elseif v.result <= nGlitchThreshold then
    			dieType = "d1006";
    			nFails = nFails + 1;
    		end
    		v.type = dieType;
    		table.insert(aSavedDice, v);
    	end
    This is similar to other code I've seen in other dice rollers for changing the color of the die.
    They show #d# at the heading for the chat message but I'm getting:
    test dice results.png

    Anyone have a suggestion on how to get it to display all the d2006, d1006 and d3006 as d6?
    You want to display them all as black dice instead of colored dice?
    If so why use the colored dice in the first place?

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 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
  •  
DICE PACKS BUNDLE

Log in

Log in