Skip to main content
Submitted prematurely
Source Link
Ray Dey
  • 7k
  • 3
  • 40
  • 45

I would probably create your own editor. You can use C# or something similar to create a very simple windows application.

If you want to abstract away from having to script things using text, you can take a graphical approach (i.e. using buttons to add a goal). The only things that I would have as textual input are conditions, values, etc.

Firstly, I'd look over your LUA scripts, find the common elements and isolate them.

Then look at all the possible actions or goals that make up a quest and add a combo box with all those possible actions.

So for example, the quest is to kill 10 zombies, the workflow I would imagine is this:

  1. Select "Kill" from Goals combo box
  2. Another combo box appears with a list of enemies, select "Zombie"
  3. Enter the condition in the condition textbox, so add "10".
  4. Click "Add Goal"
  5. The "Kill 10 Zombies" goal is added to the Quest listbox
  6. If you want to change the sequence, just have some "Move up", "Move down" buttons

After you've finished "building" your quest like this, you can then just click the "Compose Script" button and it'll map all the actions you have listed to your LUA code, including the common stuff that you have in every script.

Hope that helps.

I would probably create your own editor. You can use C# or something similar to create a very simple windows application.

If you want to abstract away from having to script things using text, you can take a graphical approach (i.e. using buttons to add a goal). The only things that I would have as textual input are conditions, values, etc.

Firstly, I'd look over your LUA scripts, find the common elements and isolate them.

Then look at all the possible actions or goals that make up a quest and add a combo box with all those possible actions.

So for example, the quest is to kill 10 zombies, the workflow I would imagine is this:

  1. Select "Kill" from Goals combo box
  2. Another combo box appears with a list of enemies, select "Zombie"
  3. Enter the condition in the condition textbox, so add "10".
  4. Click "Add Goal"
  5. The "Kill 10 Zombies" goal is added to the Quest listbox
  6. If you want to change the sequence, just have some "Move up", "Move down" buttons

I would probably create your own editor. You can use C# or something similar to create a very simple windows application.

If you want to abstract away from having to script things using text, you can take a graphical approach (i.e. using buttons to add a goal). The only things that I would have as textual input are conditions, values, etc.

Firstly, I'd look over your LUA scripts, find the common elements and isolate them.

Then look at all the possible actions or goals that make up a quest and add a combo box with all those possible actions.

So for example, the quest is to kill 10 zombies, the workflow I would imagine is this:

  1. Select "Kill" from Goals combo box
  2. Another combo box appears with a list of enemies, select "Zombie"
  3. Enter the condition in the condition textbox, so add "10".
  4. Click "Add Goal"
  5. The "Kill 10 Zombies" goal is added to the Quest listbox
  6. If you want to change the sequence, just have some "Move up", "Move down" buttons

After you've finished "building" your quest like this, you can then just click the "Compose Script" button and it'll map all the actions you have listed to your LUA code, including the common stuff that you have in every script.

Hope that helps.

Source Link
Ray Dey
  • 7k
  • 3
  • 40
  • 45

I would probably create your own editor. You can use C# or something similar to create a very simple windows application.

If you want to abstract away from having to script things using text, you can take a graphical approach (i.e. using buttons to add a goal). The only things that I would have as textual input are conditions, values, etc.

Firstly, I'd look over your LUA scripts, find the common elements and isolate them.

Then look at all the possible actions or goals that make up a quest and add a combo box with all those possible actions.

So for example, the quest is to kill 10 zombies, the workflow I would imagine is this:

  1. Select "Kill" from Goals combo box
  2. Another combo box appears with a list of enemies, select "Zombie"
  3. Enter the condition in the condition textbox, so add "10".
  4. Click "Add Goal"
  5. The "Kill 10 Zombies" goal is added to the Quest listbox
  6. If you want to change the sequence, just have some "Move up", "Move down" buttons