Setting Creature/NPC/PC appearances

Go down

Setting Creature/NPC/PC appearances Empty Setting Creature/NPC/PC appearances

Post by MannyJabrielle on Mon Feb 25, 2013 9:07 pm

Hey The Amethyst Dragon,

I've been poking about with an old module idea I had.... part of which included a subrace system that set the player to non-standard appearances, such as brownie. However, I lost that module when my old computer crashed, including the script that did just that.

I've been poking about the vault and googling for the answer... but what's the bleeping function to set the player to the CEP brownie appearance?
MannyJabrielle
MannyJabrielle
Ludicrous Level
Ludicrous Level

. : Dungeon Master
Male Number of posts : 5927
Main Character : See the "A-Team" thread in the Biographies forum.
DM Name : Dungeon-Master Gaelen
Time Zone : GMT -5:00(EST)
Registration date : 2008-07-05

View user profile

Back to top Go down

Setting Creature/NPC/PC appearances Empty Re: Setting Creature/NPC/PC appearances

Post by The Amethyst Dragon on Tue Feb 26, 2013 12:51 am

SetCreatureAppearanceType(oCreature, nAppearanceType);

oCreature is the creature you're setting the appearance for.

nAppearanceType is either the appearance constant desired (APPEARANCE_TYPE_*) or the line number from appearance.2da of the appearance desired.

For the brownie appearance, you'd find the line in the CEP version of appearance.2da. I don't know what line that is off-hand, since my own version of the file shifts the CEP appearances (as well as Q appearances) around to accommodate my pre-existing works, and I don't use the CEP creature blueprints, so the original line numbers aren't of use to me.

_________________
.
------------------------------------- The Amethyst Dragon -------------------------------------
Creator of Aenea | Custom Content Maker | Dungeon Master | Builder | Scripter | Writer | Player | Sleepless
The Amethyst Dragon
The Amethyst Dragon
Ludicrous Level
Ludicrous Level

. : Creator of Aenea / Dungeon Master
Male Number of posts : 7839
Age : 43
Location : probably on the computer or wrangling his offspring
NWN Username : amethystdragon
DM Name : The Amethyst Dragon
Time Zone : GMT - 6:00 (Wisconsin)
Registration date : 2008-06-02

View user profile http://www.amethyst-dragon.com/nwn

Back to top Go down

Setting Creature/NPC/PC appearances Empty Re: Setting Creature/NPC/PC appearances

Post by MannyJabrielle on Tue Feb 26, 2013 1:31 am

Ah, thanks.... yes, it's the CEP brownie appearance that's giving me the headache.

So say brownie's line # is 2849 as an example, the line would be SetCreatureAppearanceType(oCreature, APPEARANCE_TYPE_2849), or would I just sub in the number, not ammend it to the APPEARANCE_TYPE_?
MannyJabrielle
MannyJabrielle
Ludicrous Level
Ludicrous Level

. : Dungeon Master
Male Number of posts : 5927
Main Character : See the "A-Team" thread in the Biographies forum.
DM Name : Dungeon-Master Gaelen
Time Zone : GMT -5:00(EST)
Registration date : 2008-07-05

View user profile

Back to top Go down

Setting Creature/NPC/PC appearances Empty Re: Setting Creature/NPC/PC appearances

Post by The Amethyst Dragon on Tue Feb 26, 2013 3:07 am

SetCreatureAppearanceType(oCreature, 2849);

_________________
.
------------------------------------- The Amethyst Dragon -------------------------------------
Creator of Aenea | Custom Content Maker | Dungeon Master | Builder | Scripter | Writer | Player | Sleepless
The Amethyst Dragon
The Amethyst Dragon
Ludicrous Level
Ludicrous Level

. : Creator of Aenea / Dungeon Master
Male Number of posts : 7839
Age : 43
Location : probably on the computer or wrangling his offspring
NWN Username : amethystdragon
DM Name : The Amethyst Dragon
Time Zone : GMT - 6:00 (Wisconsin)
Registration date : 2008-06-02

View user profile http://www.amethyst-dragon.com/nwn

Back to top Go down

Setting Creature/NPC/PC appearances Empty Re: Setting Creature/NPC/PC appearances

Post by MannyJabrielle on Tue Feb 26, 2013 9:42 am

Still couldn't get it to work. Tried both the APPEARANCE_TYPE_* version and the 2da number version.

FINALLY found out why.

#include zep_inc_monster

One damn little line.... hours of headache Razz
MannyJabrielle
MannyJabrielle
Ludicrous Level
Ludicrous Level

. : Dungeon Master
Male Number of posts : 5927
Main Character : See the "A-Team" thread in the Biographies forum.
DM Name : Dungeon-Master Gaelen
Time Zone : GMT -5:00(EST)
Registration date : 2008-07-05

View user profile

Back to top Go down

Setting Creature/NPC/PC appearances Empty Re: Setting Creature/NPC/PC appearances

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum