Modifié par aramoro999, 26 septembre 2011 - 03:43 .
help whit functions
Débuté par
aramoro999
, sept. 26 2011 03:42
#1
Posté 26 septembre 2011 - 03:42
any1 know if there is a "getpolymorph" or "getsoundset" function in nwn2?
#2
Posté 26 septembre 2011 - 05:06
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.
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
Posté 26 septembre 2011 - 05:42
thx a lot
about GetAppearanceType
wher can i chek the appearance types ? i expected to find it in appearance 2da but thats not it
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
Posté 26 septembre 2011 - 06:08
That is what it refers to, it gets whatever appearance the creature currently has, and the number is based on appearance.2da.
#5
Posté 26 septembre 2011 - 08:28
O_o i get it now...u write Appearance_Type_"Label" like this right ?
#6
Posté 26 septembre 2011 - 09:08
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.
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
Posté 26 septembre 2011 - 11:54
The number the constant points to usually shows up in script assist "notes" box at the bottom of the script window.
#8
Posté 27 septembre 2011 - 02:13
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 ?
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
Posté 27 septembre 2011 - 02:21
I think there is a different column for them. Actually I think there are two, one for each gender.
#10
Posté 27 septembre 2011 - 03:47
Yes i found them, u rock man...
#11
Posté 27 septembre 2011 - 06:14
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.
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
Posté 27 septembre 2011 - 06:27
What if i change the gender in soundset.2da ?
#13
Posté 27 septembre 2011 - 06:53
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 )
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
Posté 27 septembre 2011 - 08:31
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.
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
Posté 27 septembre 2011 - 08:46
I've playtested a mod where a gender change is implemented. Let me see if the author can help you.
PJ
PJ
#16
Posté 27 septembre 2011 - 09:03
thx hope he sheds some light on this
#17
Posté 27 septembre 2011 - 09:32
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
Posté 27 septembre 2011 - 10:02
Thx i get this pack
And u say the appearance also sets the gender ?
And u say the appearance also sets the gender ?
#19
Posté 27 septembre 2011 - 10:18
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.
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
Posté 27 septembre 2011 - 10:50
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
Posté 27 septembre 2011 - 11:01
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.
It looks like Pain's way is the way to go if you want to do a convenient true gender change.
#22
Posté 27 septembre 2011 - 11:39
A recent thread on changing genders. Not entirely appropriate, though; it has nothing to do with soundsets, really.
#23
Posté 05 octobre 2011 - 07:03
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.
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
Posté 05 octobre 2011 - 07:57
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.
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
Posté 05 octobre 2011 - 08:33
hmm...i was hoping i could abuse it somehow...guess there really is no quick way to do it...





Retour en haut






