new block: logic user reference

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    Related Discussions and Projects:
    1. http://starmadedock.net/threads/pro...ter-updated-with-ram-module-todo-upload.2920/
    2. http://starmadedock.net/threads/rp-what-if-we-would-have-security-and-crew-fully-customizable.2953/
    Related Community Content:
    1. http://starmadedock.net/content/logic-palette_ram_-_neonsturm.1317/
    Related Suggested Features:
    1. http://starmadedock.net/threads/new-block-logic-user-reference.2404/#post-35427
    2. http://starmadedock.net/threads/improvements-to-display-block-variables.2807/

    Right now gravity modules work only if triggered by the first activation block either pressed directly or activated through area triggers.

    I guess it is because other logic blocks (and even the second logic block) do not forward which user activated the logic.


    @schema: please implement:
    link buttons (activator blocks) to a "logic user reference" block (LUR). This block then allows user-dependent actions.


    LURs forward their reference to other linked LURs when-ever they change their own reference (not when they change -for example- from active user 215 to 215).

    (( Mabye a line-shaped array of LURs should store each active user ID only once. ))​


    Linked to any other logic block, a LUR should return true if the user's name, his faction's name or his rank is listed in a nearby display block and false if it is not.

    [faction=name] [rank=01234|name]​



    If gravity blocks are next to LURs, they affect all users referenced by these LURs.

    [INDENT]button -> LUR
    button -> and
    some flip-flop logic -> and
    and -> gravity (nearby LUR)
    // only activate gravity if -for example- step ons didn't trigger recently.
    // only change gravity on destination floor (gravity lifts)[/INDENT]
     
    Last edited:
    • Like
    Reactions: Ithirahad
    Joined
    Jan 1, 2013
    Messages
    772
    Reaction score
    452
    I've poked @AndyP to have a look at this thread as the concept would be a nice thing to add, but Andy would be far better able to discuss it with you than i can myself. Looks well thought out though, thanks NeonSturm!
     

    Ithirahad

    Arana'Aethi
    Joined
    Nov 14, 2013
    Messages
    4,150
    Reaction score
    1,330
    • Purchased!
    • Top Forum Contributor
    • Legacy Citizen 8
    I don't know if I understand this fully, but it looks like the solution to a lot of problems I and others have had recently... Such as multilevel gravity lifts, which are the main thing keeping me from beginning work on a battleship/heavy cruiser-sized ship, seeing as I want a full interior with a lift system that doesn't involve tons of confusing tubes to switch between if I want to get straight from deck 1 to deck 5.
     

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    It should be, because it let you check ( area-trigger & logic-state) -> gravity change for user(in area-trigger -> LUR)

    It is also the solution to the faction permission problem because they have different on/off when users are mentioned (or not) in display blocks (which are used as storage-entity)