Okay, so I have a plan, just wanna run it by you guys to see if I'm on the right track.
My SWR Mud implemented a new Hyperspace Route system where you have to chart a route from system to system to get across the galaxy.
Let's say I want to go from the Corellian System to the Kashyyyk system, when I'm in the Corellian System I then type
Then, after one minute, I receive
So, I want to take that list, and put it into a Lua Table.
Then I initiate a trigger, just one, but it iterates through the table, as I go through the systems.
Something like this, (I haven't looked up the syntax for Lua tables, yet, so I know this probably isn't correct, I'm thinking of them like arrays for C++, which may be my error) where is set at the initiation of the entire process.
My SWR Mud implemented a new Hyperspace Route system where you have to chart a route from system to system to get across the galaxy.
Let's say I want to go from the Corellian System to the Kashyyyk system, when I'm in the Corellian System I then type
Quote:
chart Kashyyyk
chart Kashyyyk
Then, after one minute, I receive
Quote:
[Ship Computer] Hyperspace course charted.
Coruscant System
Chandrila System
Lantillies System
Kashyyyk System
[Ship Computer] Hyperspace course charted.
Coruscant System
Chandrila System
Lantillies System
Kashyyyk System
So, I want to take that list, and put it into a Lua Table.
Then I initiate a trigger, just one, but it iterates through the table, as I go through the systems.
Something like this, (I haven't looked up the syntax for Lua tables, yet, so I know this probably isn't correct, I'm thinking of them like arrays for C++, which may be my error) where
i
--trigger matches coming out of hyperspace into the current system
Send("calc " .. routeListTable[i] .. " 1000 1000 1000"")
i = i + 1