Jump to content


Photo

How to change race with effects?


  • Please log in to reply
4 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 19 December 2017 - 10:35 AM

If I want to turn someone into an elven fighter, complete with the avatar, of the right class and the proper gender and the RACE and GENDER values, what are my options? Just switching GENDER doesn't change the avatar; the same for RACE. And changing the avatar separately doesn't do anything for gender and race. I hate to think the engine goes step by step like this too in the beginning, applying layers to that green sirine.



#2 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 19 December 2017 - 02:27 PM

opcode 72, param2 = 2, timing =  1

 

I don't know if this resets the avatar or not. 99.9% it won't.

 

The resurrection opcode with param2 = 1 will regenerate the avatar and works on live chars  (EE only)

This obviously works only with player races.


Avenger

#3 temnix

temnix
  • Member
  • 983 posts

Posted 20 December 2017 - 09:02 AM

The 72 doesn't do anything to the avatar - it shows "Male" with a female figure. The same for changes of class and race. And "Change gender," whichever number it was, causes the avatar to revert to the "true form," if it was changed with 53 to another class or race. But I have already taken care of the switching, it just takes many subspells.



#4 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 21 December 2017 - 09:17 AM

That's why i told you to use the resurrection opcode (opcode 32) with param2 = 1, to regenerate the avatar.


Edited by Avenger_teambg, 21 December 2017 - 09:17 AM.

Avenger

#5 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 21 December 2017 - 09:55 AM

Opcode 53 changes the animation (permanently or not depending on the parameters), and you can use other opcodes to change the race etc. We did this in Fishing for Trouble, complete with a custom paperdoll and race.


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle