Creature spawning help!!

Discussion in 'General Modification' started by muny21, Mar 15, 2009.

Remove all ads!
  1. muny21

    muny21 Member

    Joined:
    Mar 6, 2009
    Messages:
    11
    Likes Received:
    0
    i know how to spawn creatures from dialogue and make them attack like i want but the problem i am having is changing their inventory. for example:

    1. i spawn the original assassins in the game from prototype which is 14303
    2. they come with a note already written for the game
    3. i want to delete that note from their inventory since my created assassin (which is the leader of the other spawning assassins) has a note that i want to use in his inventory.
    4. so how do i change inventories of the original assassins or npc that i spawn from original prototypes.

    any help would be appreciatd. thanks.
     
  2. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,743
    Likes Received:
    374
    Sorry, misunderstood this one too. To change their inventory, you need to change col 44: that points at Invensource.mes. You can add new lines to Invensource.mes but be very careful, thats an ornery file and the slightest typo will prevent the game loading (mod it anyway, but make a backup and cross your 't's).

    Otherwise, make a new prototype for the assassins you are spawning as well as the first one. The one in protos.tab is not a 'generic' assassin - he is there for a specific reason and if you are going to dd more assassins, it should be a different protoype.

    Otherwise, I stand by my previous advice - write a script in the heartbeat to check what map they are on and if they are on a different map to where the assassin is meant to be, search for the note and destroy it with 'attachee.destroy()'.
     
  3. muny21

    muny21 Member

    Joined:
    Mar 6, 2009
    Messages:
    11
    Likes Received:
    0
    thanks so much that was exactly what i needed! you have been a great help!!
     
Our Host!