Page 3 of 3

Re: A list of what hooks i've found.

Posted: Tue Nov 04, 2014 11:07 am
by akroma222
@Swampie - Checked with added parameter (self, champion, slot) and this works ok too...
I guess it is what I am adding afterwards that is causing the problem
This does nothing...

Code: Select all

function assassinDaggerEquip(self, champion, slot)
	if slot == 7 or slot == 8 then
		hudPrint("Rogue class/Assassin Dagger - Critical skill increases by 1 level.")
	end
end
I think I will move this to a separate thread as it is getting a bit off-topic
Thanks anyways!!

Re: A list of what hooks i've found.

Posted: Tue Nov 04, 2014 11:37 am
by akroma222
Thanks Prozail
I have been instructed before to use external scripts so if there are errors in scripting (in-editor) then it wont crash the editor - just the preview
Got things working now -

Code: Select all

function assassinDaggerEquip(self, champion, slot)
	local name = champion:getName()
	if slot == 1 or slot == 2 then 
                champion:trainSkill("critical", 1)
		hudPrint(""..name.."'s Critical skill increases by 1 level.")
	end
end
Turns out the slot numbers have been re-arranged - how devious!
Sorry to get off track with this thread and thanks for the help :)

Re: A list of what hooks i've found.

Posted: Tue Nov 04, 2014 2:01 pm
by Grimfan
I'd like to see your custom weapons thread from LOG 1 revamped for LOG 2 Akroma. Good stuff.