Attributes?

Now this probably has already been asked before but and it's probably a very roundabout way of doing it.

But can I use a bunch of if commands and attributes to create a battle like system??

Like have attributes on a player that the if commands look at to determine damage and how much damage you can take i'm probably going to go and like try it out anyway but i know there's a lot of really smart people on this forum that might have already done something like this and might want to share.

Also second question making a player have stats can i use attributes for that too is that what they're for? And if they are can the player set them themselves or are they set things that i have to put there and they aren't changeable by the player in anyway?

I''m still messing around with it and there might be a better way then just using a whole ton of "if" commands. Thanks for the infomation everyone :P


I would start with learning/understanding these:

http://docs.textadventures.co.uk/quest/guides/character_creation.html
http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk

and you can take a look at this too (again, old code), for ideas with 'character creation' :

http://textadventures.co.uk/forum/samples/topic/4988/character-creation-crude-code-and-sample-game

then once you understand Attributes and the 'if' Script usage, you can move onto more advanced coding (which can be used instead of lots of long 'if' chains):

List/Dictionary Attribute usage:

http://textadventures.co.uk/forum/samples/topic/5137/list-and-dictionary-extensive-guide-by-hk
http://textadventures.co.uk/forum/samples/topic/5138/explore-and-travel-code-sample-by-hk (again, old code)

you can take a look at Pixie's Combat Library:

http://textadventures.co.uk/forum/samples/topic/5976/rpg-style-combat-library-2-0
http://textadventures.co.uk/forum/samples/topic/4886/rpg-style-combat-library

and, you can also take a look at my old combat code (using Pertex' Combat Library/code) for examples as well:

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: I've learned since doing this, to never use abrevs, ever again, lol)

resources:

http://docs.textadventures.co.uk/quest/
http://docs.textadventures.co.uk/quest/tutorial/
http://docs.textadventures.co.uk/quest/guides/
http://docs.textadventures.co.uk/quest/guides/character_creation.html
http://textadventures.co.uk/forum/samples (more guides: libraries and code samples)
https://github.com/ThePix/quest


ask if you need help with anything or got any questions or need anything explained


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums