My Unanswered Questions

Discussion in 'ToEE Engine Recreation Project' started by DarkStorm, Jul 15, 2010.

Remove all ads!
  1. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    I think it enables the preset map markings ("flags" - open up the map and you should see a red flag designating Terjon's location).
     
  2. DarkStorm

    DarkStorm Established Member

    Joined:
    Oct 2, 2003
    Messages:
    514
    Likes Received:
    3
    Seriously? On *that* small map? ^^
    I really have to check that out in the original game.
     
  3. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Absurd as it seems...
    Here is another example for the use of the command. (from 00167feldrin.dlg)

    Code:
    {130}{Bah! I am not taking recruits right now! Thanks to you, my business here is through! If you want to join up, then I suggest you visit one of the temple priests. I have marked your map with their locations on this level.}{Bah! I am not taking recruits right now! Thanks to you, my business here is through! If you want to join up, then I suggest you visit one of the temple priests. I have marked your map with their locations on this level.}{}{}{}{game.map_flags( 5067, 1, 1 ); game.map_flags( 5067, 3, 1 ); game.map_flags( 5067, 4, 1 )}
    See data\rules\townmap_ui_placed_flag_locations.mes
     
  4. DarkStorm

    DarkStorm Established Member

    Joined:
    Oct 2, 2003
    Messages:
    514
    Likes Received:
    3
    Thanks a lot for that information. This clears it up completely for me. I also see the actual text for the flags in mes\townmap_ui_placed_flag_text.mes

    Thanks!
     
    Last edited: Jul 17, 2010
  5. DarkStorm

    DarkStorm Established Member

    Joined:
    Oct 2, 2003
    Messages:
    514
    Likes Received:
    3
    Added a question about the NPC reaction.
     
  6. DarkStorm

    DarkStorm Established Member

    Joined:
    Oct 2, 2003
    Messages:
    514
    Likes Received:
    3
    Added a question about water.
     
  7. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    NPCs are given factions according to protos.tab.

    The game party is given factions via scripting.
    '
    Membership of factions affects reaction from other faction NPCs according to the file:

    data\rules\gamerep.mes

    Not sure about the relationship between KOS and reaction.
     
  8. DarkStorm

    DarkStorm Established Member

    Joined:
    Oct 2, 2003
    Messages:
    514
    Likes Received:
    3
    Thanks for clearing that up then. I think if your reaction reaches zero, you'll be KOS'd.

    I'd have to test if gaining say +30 rep with a monster that would otherwise KOS you would make that monster neutral or not.

    Regards,
    Storm
     
  9. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Some testing:

    Reaction 0 indeed results in KOS.

    Positive reaction does not override KOS.

    "KOS" includes:
    * NPC flag ONF_KOS (stored in the obj_f_npc_flags variable as the 256 bit)
    * AI "shitlist" (manipulable via the ai_shitlist_add and ai_shitlist_remove commands in ToEE)

    Adding a PC to an NPC's shitlist sets the reaction to 0. (even if combat doesn't immediately ensue, e.g. the PC is invisible)
     
  10. DarkStorm

    DarkStorm Established Member

    Joined:
    Oct 2, 2003
    Messages:
    514
    Likes Received:
    3
    Thank you *very* much. This also explains the shitlist-bit. I think this also explains the vanilla bug, where you would have a random-encounter and the mobiles would have green reaction circles (hobgoblins, mind you), while talking to them would give the worst-greeting lines (pretty much an indication of reaction=0). If you take one step then, combat starts. So vanilla ToEE only seems to check for combat initiation if someone moves.

    Regards,
    Storm
     
  11. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    @DS, regarding reactions, I discovered that it takes 20 points in either direction for an NPC to react to you noticeably - e.g. say nice things or make comments about your reputations. So that would seem to indicate that 70 / 30 are good / bad, wouldn't it? (This was tested starting at neutral.)
     
  12. DarkStorm

    DarkStorm Established Member

    Joined:
    Oct 2, 2003
    Messages:
    514
    Likes Received:
    3
    Hm... I tested it with the greetings that NPCs give. I probably have to test it again.
     
Our Host!