How to make: Identify All Spell

Discussion in 'General Modification' started by Khorghakh, Oct 30, 2020.

Remove all ads!
  1. Khorghakh

    Khorghakh Member

    Joined:
    Oct 24, 2020
    Messages:
    9
    Likes Received:
    0
    Is there away to make an identify all spell?
    I have plagiarised spells already so I know roughly what to do, it is just the coding for the .py's in the src folder, I have no idea how to do that bit.
    I reckon I need to change the
    target_item = spell.target_list[0] to something else and maybe add a line or two?

    Help very much appreciated!
     
  2. Khorghakh

    Khorghakh Member

    Joined:
    Oct 24, 2020
    Messages:
    9
    Likes Received:
    0
    Nm. I worked it out in a hamfisted way.

    I copied the identify spell and added at the end of the
    def OnSpellEffect (spell):

    for pc in game.party:
    pc.identify_all()

    ^I found that coding somewhere at some point...
    Hmmm...
    It identifies everything in everyones packs though, not quite what I was after.
     
    Last edited: Oct 30, 2020
  3. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Then what exactly do you want?
     
  4. Khorghakh

    Khorghakh Member

    Joined:
    Oct 24, 2020
    Messages:
    9
    Likes Received:
    0
    I was hoping to have it identify everything in the casters pack, rather than everything in everyones pack.
    I would prefer it to cost gold per item, but I don't think that would be possible, so I will just set up a base cost (don't need help with the cost bit, unless there actually is a way to add nin cost per item, maybe through the .py part of the spell).
     
  5. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
  6. Khorghakh

    Khorghakh Member

    Joined:
    Oct 24, 2020
    Messages:
    9
    Likes Received:
    0
    You are a scholar and a gent! I am indeed using Temple+.
    I was looking for that spell because of the description saying it id'd all scrolls and potions, but I couldnt find it in the game folder or the temple+ one. Thank you kindly. This will help.
    Weird how its not in either folder, I wonder if I messed up the install or something.
     
  7. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    The install is ok, it's just inside an archive (.dat file). See the modding wiki for info on how to extract those (link in my sig).
     
  8. Khorghakh

    Khorghakh Member

    Joined:
    Oct 24, 2020
    Messages:
    9
    Likes Received:
    0
    @Sitra Achara Aye cheers again. This opens up more possibilities for when I am feeling more brave :)
     
  9. Endarire

    Endarire Ronald Rynnwrathi

    Joined:
    Jan 7, 2004
    Messages:
    982
    Likes Received:
    120
    @Khorghakh
    To my understanding, the present legend lore spell IDs everything.
     
  10. Khorghakh

    Khorghakh Member

    Joined:
    Oct 24, 2020
    Messages:
    9
    Likes Received:
    0
    @Endarire Thanks for the info, I haven't came across that spell yet. I am guessing it may be a house rule spell.
     
  11. Endarire

    Endarire Ronald Rynnwrathi

    Joined:
    Jan 7, 2004
    Messages:
    982
    Likes Received:
    120
    @Khorghakh
    Legend lore is likely a Co8 new content spell.
     
Our Host!