Auto-translated
Hello. Please help me. I created a Lord (name: Vlas) from a building. I added an animation so he stands still, and everything is fine. Now, the most difficult thing for me (if not to say, impossible) is the script. Please show me how. My idea is this: if the hero is a demon and has at least 50 Archdevils or Archdemons, then he should receive 25% of the experience from level 40 (the Lord is perfect in principle) and 50 Archdevils or Archdemons should be taken from him. It shouldn't be free, after all. And if the hero is not a demon, then 75% of the hero's experience should be taken from him, and all stats should be reduced by 5 units. So, don't bother the Lord. Something like that. If I missed any condition, please let me know.
Please send the answer in a private message. I might not find this page. It's easy to get lost here. I really hope for an answer.