Hey all. I made a quest the other day, where at some point you can trick a racist and naive air genasi (<_<) into casting a spell on herself, changing her appearance to that of a dwarf. I simply used Lilacs for it, but when the node fires game crashes.
I guess it doesn't work?
Andy.
Appearance Change Crashes the Game
Débuté par
andysks
, nov. 14 2013 09:04
#1
Posté 14 novembre 2013 - 09:04
#2
Posté 16 novembre 2013 - 01:10
Others are probably more experienced at this than I, but would you post the script you are using?
#3
Posté 16 novembre 2013 - 01:47
void main()
{
object oSelf = OBJECT_SELF;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Change how we look.
SetCreatureAppearanceType(oSelf, APPEARANCE_TYPE_DWARF_NPC_FEMALE);
SetDescription(oSelf,
"This is an Air Genasi, that was tricked to use a \\n" +
"Polymorph spell on herself, and turn her into a \\n" +
"Dwarf, something that she hates.");
}
I guess it has to do something with the scale? Ah, in any case I have moved on to other quests, when I return to this and still no-one knows I will ditch it or figure some other way to do it. It just was weird because Lilacs never fails me
.
{
object oSelf = OBJECT_SELF;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Change how we look.
SetCreatureAppearanceType(oSelf, APPEARANCE_TYPE_DWARF_NPC_FEMALE);
SetDescription(oSelf,
"This is an Air Genasi, that was tricked to use a \\n" +
"Polymorph spell on herself, and turn her into a \\n" +
"Dwarf, something that she hates.");
}
I guess it has to do something with the scale? Ah, in any case I have moved on to other quests, when I return to this and still no-one knows I will ditch it or figure some other way to do it. It just was weird because Lilacs never fails me
#4
Posté 16 novembre 2013 - 02:20
APPEARANCE_TYPE_DWARF_NPC_FEMALE = 248;
row 248 of Appearance.2da appears to be empty...
In my test, the creature went invis with missing2D texture for its icon. I couldn't target it, and when i tried to talk to it: crashola.
fix: line the chickens up and use buckshot
/cheers,
row 248 of Appearance.2da appears to be empty...
In my test, the creature went invis with missing2D texture for its icon. I couldn't target it, and when i tried to talk to it: crashola.
fix: line the chickens up and use buckshot
/cheers,
Modifié par kevL, 16 novembre 2013 - 02:24 .
#5
Posté 16 novembre 2013 - 02:31
This is actually pretty funny.
I'll take a shot in the dark, but maybe instead of using
(oSelf, APPEARANCE_TYPE_DWARF_NPC_FEMALE);
use
(oTarget, APPEARANCE_TYPE_DWARF);
Although, I checked it in my own toolset and it compiled okay
I'm wondering if the NPC choices or the gender choices are messing it up.
(EDIT) Ah looks like KevL has it right!
I'll take a shot in the dark, but maybe instead of using
(oSelf, APPEARANCE_TYPE_DWARF_NPC_FEMALE);
use
(oTarget, APPEARANCE_TYPE_DWARF);
Although, I checked it in my own toolset and it compiled okay
I'm wondering if the NPC choices or the gender choices are messing it up.
(EDIT) Ah looks like KevL has it right!
Modifié par koundog1, 16 novembre 2013 - 02:33 .
#6
Posté 16 novembre 2013 - 02:52
Then it seems the appearance 2da is quite different from NWN to NWN2, that's why lilacs gave me this. I'll dig in to the 2da and change the line.
The command is still the same right?
SetCreatureAppearanceType
The command is still the same right?
SetCreatureAppearanceType
#7
Posté 16 novembre 2013 - 02:59
Yes,
SetCreatureAppearanceType
is in the NWN2 toolset. If you type it in the filter, in the script assist, off to the left side of the screen, it comes up under "functions."
SetCreatureAppearanceType
is in the NWN2 toolset. If you type it in the filter, in the script assist, off to the left side of the screen, it comes up under "functions."
Modifié par koundog1, 16 novembre 2013 - 03:01 .





Retour en haut






