Menu

Accessing Commands Assigned to a variable.

2019-05-29
2019-06-11
  • Jason Macialek

    Jason Macialek - 2019-05-29

    /set p_counter=1

    /set p_seg1=n%;n%;n
    /set p_seg2=n
    /set p_seg3=n%;w

    /trig Response from MUD.=/eval /set p_counter=$[p_counter+1]

    Here is what I have so far. What I'm trying to do is /send the commands in the p_segX variables as the counter increases. I'm unsure on how to access these. Or if there's a better way to do it. Any help would be appreciated!

     

    Last edit: Jason Macialek 2019-05-29
  • Jason Macialek

    Jason Macialek - 2019-06-11

    I figured this out, and it was simple. To execute the commands it was as simple as:

    /eval /p_seg%{p_counter}

     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.