Torchmodders

Modding => Modding Questions => Topic started by: DeeZire on June 17, 2015, 06:08:46 pm


Title: Identify Skill/Spell
Post by: DeeZire on June 17, 2015, 06:08:46 pm
Another skill question  :-[

Has anyone had any luck getting the Identify spell working in TL2 as it did in TL1? No matter what I try, I simply cannot replicate it. Seems TL2 handles things a little differently in terms of how unidentified objects are identified.

What I'm trying to do is have a learnable spell that identifies all unidentified items in your inventory at once, much like when you level up or use the IDENTIFYALL console command.

Can anybody help?
Title: Re: Identify Skill/Spell
Post by: DeeZire on June 20, 2015, 12:53:49 am
Bit of an update, with my limited knowledge of skills I've tried every possible permutation of the Identify skill and no luck. It seems the game may be hardwired to check if there's a unit-type IDENTIFYSCROLL in your inventory. The process is not instantiated in logic or UI. Bummer.

So what I'm now thinking is a workaround that replicates the effect. The plan is to have a new invisible inventory slot that contains an identify scroll clone that will only work when a boolean stat is set to 1 and using the Identify Spell will set this stat. So my question is - where does the game define what goes into your starting inventory? Sure I;ve seent hs somewheres but can't remember.
Title: Re: Identify Skill/Spell
Post by: Wolven on June 20, 2015, 04:18:00 am
You define the starting gear in the Player unit editor under the Equipment tab for the base unit. But you don't get access to the inventory that way, just the slots for gear. Hands, feet, etc.

When I was working on Torchlight Arena I was also looking for a way to add items to the player inventory at start, but I don't think I found any direct way to do this. I'll do some digging in my old mod files though to check if I solved it, I don't remember if I did or not.
Title: Re: Identify Skill/Spell
Post by: DeeZire on June 20, 2015, 04:38:21 am
Thanks, I got that, what I was referring to though was where is it defined that you start with so many Identify Scrolls and Town Portal Scrolls in your inventory?
Title: Re: Identify Skill/Spell
Post by: Wolven on June 20, 2015, 05:17:13 am
Yes, I know what you mean. I've been looking all over for this too, but been unable to find it.