GUI Method for Complex Commands? #123
-
|
I'm working on a mystery game that gives you clue items that you can discuss with NPCs. Alongside this, I want to utilize the button based verb system over text input. However, there doesn't seem to be a built in GUI method for verb commands with multiple objects. What is the best way to handle this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
That is an interesting question! I have started an RPG game, and in that you do it as two actions. Instead of ATTACK GOBLIN WITH FIREBALL, you TARGET GOBLIN and then CAST FIREBALL. Instead of ATTACK GOBLIN WITH POLEARM you EQUIP POLEARM and then ATTACK GOBLIN. It is simple to code as you just have a few extra commands. For containers, you could have STOW and RETRIEVE commands, and if more than one container is present, offer a menu so the player can select one. If you want a more flexible system, the first thing to decide is how you expect the user will interact with the UI. That will get significantly more complicated... which is why I did not do it that way. |
Beta Was this translation helpful? Give feedback.
-
|
I assume when you say "verb commands with multiple objects", you mean something like |
Beta Was this translation helpful? Give feedback.
I assume when you say "verb commands with multiple objects", you mean something like
show clue to npc, where "clue" and "npc" are the objects, right? If you're not using text input, then it might be easier to simplify the command toshow clueand select the NPC in the function that command resolves to. Based on your description, I'd recommend using the respond function, which would fit quite well in this case.