Aller au contenu

Photo

help whit functions


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

#1
aramoro999

aramoro999
  • Members
  • 42 messages
any1 know if there is a "getpolymorph" or "getsoundset" function in nwn2?

Modifié par aramoro999, 26 septembre 2011 - 03:43 .


#2
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Try searching here

The default game functions are included in the above with descriptions, and often what you are looking for is how to do things which the other functions you find can help with, or what a function name is, and you can take any functions you find and copy them out as needed.

polymorph is an effect, iterate the effects for an effect type, and geteffectinteger to determine which shape they are in.

Also Appearance is gotten by the function GetAppearanceType()

SetSoundSet (object oCreature, int nSoundSet) - that is there, don't think there is a get for it to match.

#3
aramoro999

aramoro999
  • Members
  • 42 messages
thx a lot

about GetAppearanceType
wher can i chek the appearance types ? i expected to find it in appearance 2da but thats not it

Modifié par aramoro999, 26 septembre 2011 - 06:03 .


#4
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
That is what it refers to, it gets whatever appearance the creature currently has, and the number is based on appearance.2da.

#5
aramoro999

aramoro999
  • Members
  • 42 messages
O_o i get it now...u write Appearance_Type_"Label" like this right ?

#6
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
No, you use the constants, which are defined labels APPEARANCE_TYPE_* that hold integers. What you said is kind of the result, but its not that simple.

Use the toolset help thingy to look up APPEARANCE_TYPE_, then use what is there and compare the numbers to appearance.2da. Not everything in apperance.2da has a constant. And not every constant has a valid apprearance that works, some are from NWN1.

#7
Morbane

Morbane
  • Members
  • 1 883 messages
The number the constant points to usually shows up in script assist "notes" box at the bottom of the script window.

#8
aramoro999

aramoro999
  • Members
  • 42 messages
thx u helped me a lot

I would also like to know something about the spellcasting, the different magic schools have different
chants sounds right ? so how does this work ? i dont think theyr in the ssf, so where ?

Modifié par aramoro999, 27 septembre 2011 - 02:14 .


#9
The Fred

The Fred
  • Members
  • 2 516 messages
I think there is a different column for them. Actually I think there are two, one for each gender.

#10
aramoro999

aramoro999
  • Members
  • 42 messages
Yes i found them, u rock man...

#11
aramoro999

aramoro999
  • Members
  • 42 messages
Looks like i cant go even 3 steps whitout u guys

The chant sounds are in the spells.2da under ConjSoundMale and ConjSoundFemale, wich means ican now play the apropriate sounds for the polymorphs, but ineed something to triger them. If i set the gender to male or female i sould be able to play the right sounds, but the only function i found, "setgender" requires to reenter the module for the
changes to take place, wich is out of the question. So i need a work around for this.

Modifié par aramoro999, 27 septembre 2011 - 06:17 .


#12
aramoro999

aramoro999
  • Members
  • 42 messages
What if i change the gender in soundset.2da ?

#13
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
It's supposed to be the caster who is chanting, so if it's a female caster, it's female.

If you want it male for both, set it in spells.2da by putting the same values in the 2 columns. But no idea what you are trying to do, i don't think adjusting soundset.2da is going to get things how you want, unless you actually want a global change for some reason.

( you can also manually play sounds )

#14
aramoro999

aramoro999
  • Members
  • 42 messages
Thing is as soon as pc is polymorphed its gender is "0 = male" even if the caster is female
and uses male sounds. I tought i got around it but no...still uses the male,
so i want force it to use the fem sound, i would use some code to detect the chant sounds(if possible) and
if gender is "1 = female" it would play the female insted.

I just dont know how.

Modifié par aramoro999, 27 septembre 2011 - 08:33 .


#15
PJ156

PJ156
  • Members
  • 2 983 messages
I've playtested a mod where a gender change is implemented. Let me see if the author can help you.

PJ 

#16
aramoro999

aramoro999
  • Members
  • 42 messages
thx hope he sheds some light on this

#17
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
You do it via set appearance, and i don't think there is an easy way to set gender to affect how the player sounds. ( Technique is inside the CSL system, and is same method swimming and horse riding was implemented, if you use Pains Monster Pack and it's appearance.2da you would have most of the hard work done. The csl has a lookup which can deal with all the known races and do a back and forth from original to overridden appearance, and i can apply a sex change to any player ( even ogres ). )

Modifié par painofdungeoneternal, 27 septembre 2011 - 09:36 .


#18
aramoro999

aramoro999
  • Members
  • 42 messages
Thx i get this pack

And u say the appearance also sets the gender ?

#19
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Its a bit of a work around. Its not setting the gender, but disregarding the gender and just showing a particular row. ( simplified example: row 7 is human, row 1507 is human male, 1707 is human female - if player has an appearance between 1500-1900 then they are faking their gender and you can just substract 1500 or 1700 respectively )

This is only real way to do it, the code it allows it to support about 200 humanoid appearances.

Does not affect soundset, just appearance.

#20
aramoro999

aramoro999
  • Members
  • 42 messages
I had something similar in mind, but i guess ur solution is a bit more solid, i go whit it...

Modifié par aramoro999, 27 septembre 2011 - 10:51 .


#21
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
PJ mentioned my mod but what I have is only the appearance of gender change. There is an item that changes the wearer into a succubus, so if you are a male character, it gives the impression of gender change. I initially wanted a girdle of gender change like in Baldur's Gate, but I could not figure out a way to conveniently change the gender of the PC.

It looks like Pain's way is the way to go if you want to do a convenient true gender change.

#22
The Fred

The Fred
  • Members
  • 2 516 messages
A recent thread on changing genders. Not entirely appropriate, though; it has nothing to do with soundsets, really.

#23
aramoro999

aramoro999
  • Members
  • 42 messages
Had lots of tings to do, didn't had any time to work on this. However i had another idea, the game has a method for this. Every time u get to conversation that uses a skill check shape shift ends, and gets back to normal form, so the game can pick up ur real stats, skills and anything else.

I was thinking of a way to use this, (if it isn't hardcoded) maybe perform a polymorph or appearance change in the code, without actually changing anything in gametime, like some test.

Id like to hear ur thoughts about this.

Modifié par aramoro999, 05 octobre 2011 - 07:05 .


#24
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
That is just stripping the effects applied. That is more of a flaw to sidestep problems, which they put into the cutscenes.

Not really something which solves the problems involved, and polymorph for example removes the ability to use items.

Suggest looking at my CSL stuff, or the wild magic on the vault, and just using what others have found to work.

#25
aramoro999

aramoro999
  • Members
  • 42 messages
hmm...i was hoping i could abuse it somehow...guess there really is no quick way to do it...