Agetian
January 25th, 2006, 01:18 PM
Heya,
I thought I'd share something. :) The infamous 64-bit structure known in ToEEWB as "64-bit AI flags" (the one that shows up as a combination of 0's and 1's) actually comes from Arcanum and has similar, if not the same, meaning as there. In fact, only the first twelve bits are used. So, from left to right, they would be:
1. Finding help -- the NPC is trying to find some help in a battle
2. Waypoint delay -- the NPC is waiting for a delay to finish for his waypoints.
3. Waypoint delayed -- the NPC has completed his delay to finish for his waypoints.
4. Running off -- the NPC is running away.
5. Fighting -- the NPC is fighting.
6. Check Grenade -- the NPC has to check if he can throw a grenade (Arcanum leftover, most surely not used in ToEE anymore)
7. Check Wield -- the NPC has to check what he has in his inventory to dress up, and dress up afterwards.
8. Check Weapon -- the NPC has to check its weapon and possibly choose something else to wield.
9. Look For Weapon -- (Arcanum leftover??) the NPC will look around its vicinity for a weapon and go grab it.
10. Look For Armor -- (Arcanum leftover??) same for armor.
11. Look For Ammo -- (Arcanum leftover??) same for ammo.
12. Has Spoken Flee -- (Arcanum leftover??) the NPC has screamed about fleeing.
Most of these flags are internal and should not be set in the editor. Instead, they are set/reset in the game process automatically. However, the flag that is of particular interest is flag #7 (Check Wield), which is very often set for human NPCs. It is usually set so that the NPC will dress up as soon as its created. So, setting this flag is often a good idea. ;)
Now please, someone tell me what should we do so this information is not lost. May I suggest Ted to add this to one of his future tutorials?.. I don't want to *sticky* this post because it's minor compared to what should be stickied, yet it's important enough so I don't want this information to be lost in the course of time...
Thanks go to Steve Moret for certain clarifications on this field.
- Agetian
I thought I'd share something. :) The infamous 64-bit structure known in ToEEWB as "64-bit AI flags" (the one that shows up as a combination of 0's and 1's) actually comes from Arcanum and has similar, if not the same, meaning as there. In fact, only the first twelve bits are used. So, from left to right, they would be:
1. Finding help -- the NPC is trying to find some help in a battle
2. Waypoint delay -- the NPC is waiting for a delay to finish for his waypoints.
3. Waypoint delayed -- the NPC has completed his delay to finish for his waypoints.
4. Running off -- the NPC is running away.
5. Fighting -- the NPC is fighting.
6. Check Grenade -- the NPC has to check if he can throw a grenade (Arcanum leftover, most surely not used in ToEE anymore)
7. Check Wield -- the NPC has to check what he has in his inventory to dress up, and dress up afterwards.
8. Check Weapon -- the NPC has to check its weapon and possibly choose something else to wield.
9. Look For Weapon -- (Arcanum leftover??) the NPC will look around its vicinity for a weapon and go grab it.
10. Look For Armor -- (Arcanum leftover??) same for armor.
11. Look For Ammo -- (Arcanum leftover??) same for ammo.
12. Has Spoken Flee -- (Arcanum leftover??) the NPC has screamed about fleeing.
Most of these flags are internal and should not be set in the editor. Instead, they are set/reset in the game process automatically. However, the flag that is of particular interest is flag #7 (Check Wield), which is very often set for human NPCs. It is usually set so that the NPC will dress up as soon as its created. So, setting this flag is often a good idea. ;)
Now please, someone tell me what should we do so this information is not lost. May I suggest Ted to add this to one of his future tutorials?.. I don't want to *sticky* this post because it's minor compared to what should be stickied, yet it's important enough so I don't want this information to be lost in the course of time...
Thanks go to Steve Moret for certain clarifications on this field.
- Agetian