Aller au contenu

Photo

Script help (SetAutoLevelUp)


1 réponse à ce sujet

#1
jsd313

jsd313
  • Members
  • 184 messages
I want to make it so my followers will not auto level up. I want to do it manually. What would I have to add here to get this to work. Thanks.


case EVENT_TYPE_PARTYMEMBER_ADDED:
        {
            object oFollower = GetEventObject(ev, 0);
            SetLocalInt(oFollower, CREATURE_REWARD_FLAGS, 0); 
            SetFollowerState(oFollower, FOLLOWER_STATE_ACTIVE);
           AddCommand(oFollower, CommandJumpToLocation(GetLocation(GetHero()))); 
             }

Modifié par jsd313, 08 janvier 2010 - 09:35 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
The way to do this is to modify player_core. There's a line in the event handler for EVENT_TYPE_PARTY_MEMBER_HIRED, AL_DoAutoLevelUp(OBJECT_SELF, TRUE);



If you delete this line, I think it should do what you want.



If you don't want to modify the core script, you may be able to intercept that event and not pass it down, but I think you'd have to replicate all the other functionality or your party member would just be level 1, or maybe even 0.