player action

VeliaZ
24 Jan 2017, 19:38

its my first time using quest and i want to know how you can create an action for example fight,dodge,jump etc and then show the result of the action that the player did.


hegemonkhan
24 Jan 2017, 20:40

the simpliest way is to add Verbs to your Objects ('whatever' Object -> 'Verb' Tab -> Add -> set it up), and then use the 'print a message' Script (add new script -> 'output' section/category -> 'print a message' Script)


if you haven't already, I'd suggest you learn the basics of using quest:

http://docs.textadventures.co.uk/quest/tutorial/
http://textadventures.co.uk/forum/games/topic/5940/quest-tutorials-and-templates-published (XanMag's 'tutorial 2' step by step study-guide game to try to help bridge the huge gap from the tutorial and trying to make a game on your own)


and here's some helpful guides/links:

http://docs.textadventures.co.uk/quest/
http://docs.textadventures.co.uk/quest/guides/
http://textadventures.co.uk/forum/samples


otherwise, however, what you're asking for, is unfortunately much more difficult/complex/complicated/advanced (especially if you want to have a really ambitious RPG system of it), as even simple seeming things, actually aren't so simple to do with coding / game making...

so, you really need to learn the basics of game making / programming / coding / scripting, which is Attributes (global/"permanent" VARIABLES: to store/save your game data/stats/input/etc for reuse later) (the 'set a variable or attribute' Script) and the 'if' Script (enables 90% of the actions/events/stuff/etc you want to do in your game, especially when used with the 'set a variable or attribute' Script / Attributes), to do more involved (RPG-like) actions/events/systems/features/capabilities/mechanics in your games.

To then display your VARIABLES, you use the 'print a message' Script (and the '[EXPRESSION]' script option) and/or you can use the 'text processor commands' ( http://docs.textadventures.co.uk/quest/text_processor.html ) too (I think these can be used with the 'print a message' Script's '[MESSAGE]' script option)

if interested into delving into learning basic scripting with quest (regardless of whether you use the GUI/Editor or directly in code):

http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk


here's a demo game step by step guide that you can follow, to learn the basics of using Attributes (and status attributes):

http://textadventures.co.uk/forum/quest/topic/5387/i-really-need-help


as for combat (if you want more advanced/involved/complex combat)... you can take a look at Pixie's combat library (see the 'library and code samples' forum board), and/or take a look at my old poor combat code (using Pertex' Combat Library structure/design, credit goes to Pertex), for ideas/look at what a bit more advanced combat system is like/entails, and how to do some various combat stuff:

http://textadventures.co.uk/forum/quest/topic/3348/noobie-hks-help-me-thread#22483
http://textadventures.co.uk/forum/quest/topic/3348/noobie-hks-help-me-thread#22486 (key/legend for it, I've learned to never ever use abrevs ever again, lol)


VeliaZ
24 Jan 2017, 21:16

Thank you so much for your response!!
I will check everything :)