Need help with verbs
christiawi987
28 Nov 2016, 12:33Hey, I'm writing a text adventure have gotten to the stage where I need to hide a verb. Meaning, I want to be able to have an object be selected with a verb, but only have it appear AFTER something has happened. I have figured out how to add verbs to objects through events by using code. But the verb doesn't have any effect. It simply appears in the object display verb area after the certain event has happened.
Is there a way for me to create verbs for objects AFTER an event has happened and how do I give that verb meaning?
The Pixie
28 Nov 2016, 13:44There are verbs that are a kind of shortcut for writing commands:
https://github.com/ThePix/quest/wiki/Using-Verbs
Then there are the display verbs, which are set up quite differently:
https://github.com/ThePix/quest/wiki/Using-Display-and-Inventory-Verbs-Successfully
hegemonkhan
28 Nov 2016, 19:29Pixie's links explain/guide well, so in quick concept of it:
Verbs' displayment is controlled by the built-in 'displayverbs' and 'inventoryverbs' Stringlist Attributes (each/every/any/all Object/s has/have it's/their own 'displayverbs' and/or 'inventoryverbs' Stringlist Attributes), which you can add or remove items (your verbs' names) to the built-in 'displayverbs' and/or 'inventoryverbs' Stringlist Attributes for each individual Object, and thus controlling whether those Verbs are displayed or not (hidden), and when/how/where too.
christiawi987
29 Nov 2016, 01:22Thanks guys. I now know where to find the answers. I just need to read those documents again and keep practicing. I think my main problem is that I simply don't understand the basic terms you guys take for granted. It's just gibberish to me. Oh well, practice, I shall!
hegemonkhan
29 Nov 2016, 03:09it takes quite a while to start understanding concepts and terms (and even longer to slowly learn to code more and more), as it's a lot, even if you might slightly understand stuff, you're overwhelmed, it's just too much info/data/stuff to take in and grasp all of it at once.
you can see how confused/overwhelmed I was (see link below), when I first found quest (and with ZERO coding knowledge/ability --- 4 years later and now I've got some coding ability all thanks to quest, and thanks to quest, that coding knowledge has made the basic school programming classes, I took, a total breeze. I'm struggling now with learning Data Structures and OOP/OOD and still got to get a lot better with Assembly too, currently, before I pass these will-be-re-take classes, and move onto higher programming classes). See this link:
http://textadventures.co.uk/forum/quest/topic/3348/noobie-hks-help-me-thread
So, I speak from experience, that quest is a great teaching tool for learning to program, even from totally zero coding knowledge.
if you want to start to try to learn more about quest and its coding (and coding in general too), here's a link:
http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk
and there's this one too, but its on List/Dictionary Attributes, which are a bit more complex/advanced/difficult in trying to learn to and how to use them:
http://textadventures.co.uk/forum/samples/topic/5137/list-and-dictionary-extensive-guide-by-hk
though, I'd recommend this order:
- tutorial ( http://docs.textadventures.co.uk/quest/tutorial/ )
- tutorial 2: XanMag's 'tutorial and templates' tutorial game ( http://textadventures.co.uk/forum/games/topic/5940/quest-tutorials-and-templates-published )
- character creation ( http://docs.textadventures.co.uk/quest/guides/character_creation.html )
- other guides/Pixie's guides (most guides are Pixie's, lol) ( http://docs.textadventures.co.uk/quest/guides/ and http://textadventures.co.uk/forum/samples )
- Attributes and the 'if' Script usage ( http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk )
- List/Dictionary Attributes ( http://textadventures.co.uk/forum/samples/topic/5137/list-and-dictionary-extensive-guide-by-hk )
- learn more of Quest's commands (Scripts/Functions) and Attributes: explore/study the doc site ( http://docs.textadventures.co.uk/quest/ --- at the top bar, see the: 'Scripts', 'Functions: categorical order / alphabetical order', 'Types = Attribute/Data Types', and 'Elements, especially the Element's: -> Objects -> Attributes' sub pages )
- learn more advanced designs/coding stuff