+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

+-Stats ezBlock

Members
Total Members: 31
Latest: vicky007
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 2404
Total Topics: 59
Most Online Today: 8
Most Online Ever: 139
(March 12, 2024, 08:04:15 pm)
Users Online
Members: 0
Guests: 2
Total: 2

Author Topic: Codes/Scrips  (Read 224 times)

0 Members and 1 Guest are viewing this topic.

Offline Michadr

  • Perisno Lead Developer
  • Administrator
  • Squire
  • *
  • Posts: 668
  • Karma: +11/-0
  • Gender: Male
  • Location: USA
    • View Profile
Gender Face Codes
« on: August 16, 2013, 12:02:34 am »
Problem: if you add multiple races as genders, the new races are always considered female because they don't have header tf=0.

i heard there was a solution that could be a bit complicated, but i didn't find anything about the neccessary changes/coding. and i know some mods have managed to add new male races, but i don't get it.


Solution:
Replace all troop_get_type with script to define the gender. We can make male have least significant bit=0, and female' LSB =1.
Let's say tf_male=0, tf_female=1, tf_goblin=2. Then, Female goblin=tf_goblin|tf_female
So after call (troop_get_type,":gender", ":troop"), then call (val_and, ":gender", 1),
male will be 0, and female will be 1.


or...

http://forums.taleworlds.com/index.php/topic,59300.msg1534679.html#msg1534679
« Last Edit: August 16, 2013, 12:17:28 am by Michadr »

 

+-Recent Topics

Erotic Escorts and Get in touch with Lady in Udaipur by vicky007
October 28, 2020, 01:06:33 am

Talesworld Board by Michadr
September 30, 2013, 06:30:21 pm

Rate the song above you by habeo
September 10, 2013, 12:02:55 pm

Stuff in development [items] by Michadr
September 05, 2013, 07:38:59 pm

Suggestions Thread by habeo
September 01, 2013, 11:51:47 am

Making A Quest (By Lumos) by Michadr
August 30, 2013, 07:35:31 pm

Bug Report Thread by Michadr
August 29, 2013, 03:09:59 am

Modding Tools/ Links by Michadr
August 28, 2013, 11:03:29 pm

Factions by habeo
August 27, 2013, 09:02:01 pm

Other Games You Play by Zephilinox
August 27, 2013, 02:31:10 pm