Slave Market Script

Discussion in 'Modding and Scripting Support' started by Anonymous, May 25, 2006.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. Anonymous

    Anonymous Guest

    I'm scratching myself bald trying to make three things happen at a slave market.

    1) At a floated command from the slave monger, the woman drops her dress to the ground.

    2) Neither the slave or the monger picks the dress up until you have moved on, then she retrieves her clothes. (Tile scripts?)

    3) At another command "Turn around, girl!", she rotates 360 degrees in the quarter-turn increments with a one second delay between moves.

    The right combo of scripting commands is eluding me.
     
  2. TONGSyaBASS

    TONGSyaBASS Member

    Messages:
    772
    Likes Received:
    0
    Joined:
    Apr 19, 2005
    1. Slave monger sets global flag X.
    Woman has heartbeat that checks for flag X.
    IF set then destroy item in inventory named num (clothes).

    2. Tile script as you walk away resets flag and trips another.
    Hearbeat checks for other flag and creates prototype (clothes) inside woman's inventory.

    3. Another flag set by slaver.
    Heartbeat calls script every 1 second.

    This is certainly not the only way to do this. You could also use lots of loops instead of global flags.
    As for the dress lying on the ground, I'm afraid this won't be possible unless you create a proto critter with a unique internal name and give it the art of clothes.
    The reason being, that only objects can be created on the ground, not items.
    I know it sounds terribly complicated but once you get the hang of hex it's not that difficult.
     
  3. Anonymous

    Anonymous Guest

    Being a believer in "Keep it simple", I'll go with your ideas. Pity about the clothes though - they would have added a nice bit of realism to the scene.
     
  4. Vorak

    Vorak Administrator Staff Member

    Messages:
    5,829
    Likes Received:
    21
    Joined:
    Sep 15, 2003
    Well, you can still take them off once you've bought her.
     
  5. Anonymous

    Anonymous Guest

Our Host!