Aller au contenu

Photo

Tutorial: Which companion is equipping & unequipping?


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

#1
JackFuzz

JackFuzz
  • Members
  • 408 messages
The following script is the area where you can find out which companion is equipping what. Just good common knowledge to have.

//This script handles events for player & companion
script: player_core


// -----------------------------------------------------------------
// Legacy Heartbeat event. Left for the consumption of modders.
// Be careful with it, it's not nice to run on a lot of creatures...
// -----------------------------------------------------------------
//CTRL F THEN FIND THE FOLLOWING EVENT HANDLERS
// I ADDED THE FOLLOWING AS YOU CAN SEE

case EVENT_TYPE_EQUIP:
        {
            bEventHandled = HandleEvent_Equip(ev);
           
            //grab which companion is getting equipped
            object oTestGet = GetEventCreator(ev);
                      
            //------------------------------------------------------
            //If you equip an item on morrigan this will print the following to the log:
            //  Script    creator:gen00fl_morrigan

            PrintToLog("creator:" + GetTag(oTestGet));

            //-----------------------------------------------

           
            break;
        }

        case EVENT_TYPE_UNEQUIP:
        {
            bEventHandled = HandleEvent_UnEquip(ev); 

            //this prints 'unequip' to to dragonage_1.log in your logs directory under dragon age in documents           
            PrintToLog("unequip");
           
            break;
        }