Jump to content

item Coding help


bomo99

Recommended Posts

Now that i see how the Code Blocks work this isnt exactly what i wanted.

what i wanted was for the items 3rd option to be used like a repair hammer with the repair menu just like how skeleton key acts like a lockpick that cant break i wanted the same for this item i am making so it can repair items without fear of it breaking.

Link to comment
Share on other sites

my last script suggestion should work, you need to create total 3 scripts

you should equip the weapon first though for it to works

choose option 3 when you're ready

then the weapon name will have additional text -INF-

means

that weapon will never broken until you remove the -INF- name

how to remove it / change it back, equip item contain -INF- select option 3 in menu, it should be back to original name again...

Edited by lubronbrons
Link to comment
Share on other sites

oh sorry, language barrier. I failed to understand you

 

well....

after giving this some thoughts
I think you just want all weapon to become unbreakable in the end
so why not go with simple solution, my first suggestion
by doing this --> SetNumericGameSetting fDamageToWeaponPercentage 0
definitely will solve your problem repair without hassle
or...
if you still want repairing things even tho your armorer is at level 1
then I can't help you much regarding this
EDIT :
this is for armor
SetNumericGameSetting fDamageToArmorPercentage 0
Edited by lubronbrons
Link to comment
Share on other sites

oh !

I understand now

 

here you go

scn myMenu
short choice
ref rf1
begin GameMode
Let choice := GetButtonPressed
if choice == 0
	Showenchantment
elseif choice == 1
	Showspellmaking
elseif choice == 2 ;Where the Repair option will be
	if GetNumericINISetting fRepairSkillBreakBase
		Message "Unbreakable hammer on"
		SetNumericGameSetting fRepairBREAKAPPRENTICEMult 0
		SetNumericGameSetting fRepairSkillBreakBase 0
		SetNumericGameSetting fRepairSkillBreakMult 0
	else ;back to vanilla setting
		Message "Revert repair hammer to vanilla setting"
		SetNumericGameSetting fRepairBREAKAPPRENTICEMult 0.5
		SetNumericGameSetting fRepairSkillBreakBase 30
		SetNumericGameSetting fRepairSkillBreakMult -0.2
	endif
endif
end
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...