Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

How to use HLAs in ver2.5??

mimiiimimiii Member Posts: 7

I copyed lunumab.2da(for TOB) to override folder, and could use HLAs in last version.

But It is blocked in ver2.5.

After Level up, "Done" button is disabled... Can't click "Done"

Any way to use HLAs in ver2.5??


Comments

  • mimiiimimiii Member Posts: 7
    lefreut said:

    @mimiii The UI is missing the code for the HLAs. But you can add it yourself by editing the UI.menu.

    First add this code at the end of the menu 'LEVELUP_PROFICIENCIES' (line 16636):

    	button
    	{
    		on return
    		enabled "chargen.levelingUp and createCharScreen:IsHighLevelAbilitiesButtonClickable()"
    		area 762 704 230 44
    		bam GUIBUTMT
    		sequenceonce lua "getRandomButtonSequence('GUIBUTMT')"
    		text "ABILITIES_BUTTON"
    		text style "button"
    		action
    		"
    			createCharScreen:OnHighLevelAbilitiesButtonClick()
    		"
    	}
    Then, search for 'function chargenHLADescription()' and in the function replace 63817 with 34713.

    And finally, search for the menu 'CHARGEN_HIGH_LEVEL_ABILITIES' and replace the whole menu with this code:
    menu
    {
    	name 'CHARGEN_HIGH_LEVEL_ABILITIES'
    	align center center
    	ignoreesc
    	onOpen
    	"
    		currentHLASelection = nil
    	"
    	label
    	{
    		area 0 0 864 710
    		mosaic GUICUSTB
    	}
    	label
    	{
    		area 82 12 700 40
    		text "ABILITIES_TITLE"
    		text style "title"
    	}
    	label
    	{
    		area 46 116 336 48
    		text lua "chargen.numHLAs"
    		text style "normal"
    		text align center center
    	}
    	text
    	{
    		area 436 128 382 478
    		text lua "Infinity_FetchString(chargenHLADescription())"
    		text style "normal"
    		scrollbar 'GUISCRC'
    	}
    
    	list
    	{
    		column
    		{
    			width 16
    			label
    			{
    				bam GUIBTBUT
    				area 0 0 52 52
    				align center center
    				icon lua "chargen.HLAs[rowNumber].icon"
    				count lua "chargen.HLAs[rowNumber].count"
    			}
    		}
    		column
    		{
    			width 56
    			label
    			{
    				area 4 0 -1 -1
    				text lua "Infinity_FetchString(chargen.HLAs[rowNumber].name)"
    				text style "normal"
    				align left center
    			}
    		}
    		column
    		{
    			width 14
    			label
    			{
    				area 0 4 45 42
    				bam GUIOSW
    				frame lua "chargenHLAPlusMinusFrame(3, rowNumber)"
    				sequence 0
    			}
    		}
    		column
    		{
    			width 14
    			label
    			{
    				area 0 4 45 42
    				bam GUIOSW
    				frame lua "chargenHLAPlusMinusFrame(4, rowNumber)"
    				sequence 1
    			}
    		}
    		scrollbar 'GUISCRC'
    		rowheight 52
    		hidehighlight
    		area 42 192 340 414
    		table "chargen.HLAs"
    		var currentHLASelection
    		action
    		"
    			if cellNumber == 3 and chargenHLAPlusMinusFrame(3, currentHLASelection) ~= 3 then
    				Infinity_PlaySound('GAM_09')
    				createCharScreen:OnHLAButtonClick(currentHLASelection, 1)
    			elseif cellNumber == 4 and chargenHLAPlusMinusFrame(4, currentHLASelection) ~= 3 then
    				Infinity_PlaySound('GAM_09')
    				createCharScreen:OnHLAButtonClick(currentHLASelection, -1)
    			end
    			cellNumber = nil
    		"
    	}
    
    	button
    	{
    		on enter
    		bam GUIBUTMT
    		area 210 653 234 44
    		text style "button"
    		text "DONE_BUTTON"
    		clickable lua "createCharScreen:IsDoneButtonClickable()"
    		action
    		"
    			createCharScreen:OnDoneButtonClick()
    			createCharScreen:OnDoneButtonClick()
    		"
    	}
    	button
    	{
    		on escape
    		bam GUIBUTMT
    		area 464 653 234 44
    		text style "button"
    		text "CANCEL_BUTTON"
    		action
    		"
    			Infinity_PopMenu()
    			createCharScreen:OnCancelButtonClick()
    		"
    	}
    }

    Thank you for your helping.

    I'm using your ImprovedUI in EET... :)

    But

    Unfortunately, I don't know modding. :'(

    I can't find UI.menu.

  • mimiiimimiii Member Posts: 7
    lefreut said:

    mimiii said:

    Thank you for your helping.

    I'm using your ImprovedUI in EET... :)

    But

    Unfortunately, I don't know modding. :'(

    I can't find UI.menu.

    If you can wait a little, I will release an UI mod for IWD:EE 2.5 with the tweak in it.

    Otherwise, the easiest way to extract the file is to use NearInfinity.

    ,,,

    I edited ui.menu by NI, and "Done" was abled. :D

    But after select HLAs, game screen was not changed.

    Something is wrong. but I don't know what is wrong. :'(

    I am waiting your tweak. B)

    Many players in my community want using HLAs in IWD.

    I will be glad i introduce the tweak.

    Thanks.

  • lefreutlefreut Member Posts: 1,462
  • mimiiimimiii Member Posts: 7
    lefreut said:

    @mimiii The UI mod is available here :)

    Thanks.

    I already downloaded and I am checking it.

    Yes. I can use "use any item"..kk.

    Thanks for taking the request.


    RAM021
Sign In or Register to comment.