Aller au contenu

Photo

Appearance Change Crashes the Game


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
andysks

andysks
  • Members
  • 1 654 messages
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.

#2
Friar

Friar
  • Members
  • 293 messages
Others are probably more experienced at this than I, but would you post the script you are using?

#3
andysks

andysks
  • Members
  • 1 654 messages
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 :).

#4
kevL

kevL
  • Members
  • 4 074 messages
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,

Modifié par kevL, 16 novembre 2013 - 02:24 .


#5
Friar

Friar
  • Members
  • 293 messages
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!

Modifié par koundog1, 16 novembre 2013 - 02:33 .


#6
andysks

andysks
  • Members
  • 1 654 messages
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

#7
Friar

Friar
  • Members
  • 293 messages
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."

Modifié par koundog1, 16 novembre 2013 - 03:01 .