Files
HeroesStone_PRC8/_module/nss/zep_cw_autoport.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

27 lines
718 B
Plaintext

//::///////////////////////////////////////////////
//:: CEP Creature Wizard
//:: Community Expansion Pack
//:://////////////////////////////////////////////
/*
Attempts to automatically set the portrait to
match the appearance
*/
//:://////////////////////////////////////////////
//:: Created By: 420
//:: Created On: April 20, 2009
//:://////////////////////////////////////////////
#include "zep_cw_inc"
void main()
{
struct CW2da data = Get2daData();
object oTarget = data.target;
int nApp = GetLocalInt(OBJECT_SELF, "CW_APP");
int nPort = AppToPort(nApp);
ActionPauseConversation();
SetPortraitId(oTarget, nPort);
SetPortraitId(OBJECT_SELF, nPort);
DelayCommand(0.3, ActionResumeConversation());
}