Close ×
Table of Contents
1. What is TAME?
1.1. What is TAMEScript?
1.2. What is a "Virtual Machine?"
1.3. What is a "Context?"
1.4. What is a "Shell?"
2. The Engine Cycle
2.1. Input and Requests
2.2. Response and Cues
3. The Interpreter
3.1. How TAME Parses Input
3.2. What is a "Greedy" interpreter?
3.3. How an Action gets Processed
3.4. When the Interpreter Fails Parsing
4. Module Overview
4.1. Objects
4.2. World
4.3. Players
4.4. Rooms
4.5. Containers
4.6. Actions
5. TAMEScript
5.1. Comments
5.2. Values and Expressions
5.2.1. Identifiers
5.2.2. Expressions
5.3. Statements and Commands
5.4. Lists
5.4.1 References
5.5. Blocks
5.6. Functions
5.7. Control Statements
5.7.1. If / Else
5.7.2. While Loops
5.7.3. For Loops
5.7.4. Quit
5.7.5. Queue
5.7.6. Finish
5.7.7. End
5.7.8. Break
5.7.9. Continue
5.8. Other Keywords
5.8.1. world
5.8.2. player
5.8.3. room
5.8.4. this
5.9. Passages
5.10. Inheritance
5.10.1. override
5.10.2. archetype
5.11. The Preprocessor
5.11.1. #include
5.11.2. #define
5.11.3. #undefine
5.11.4. #ifdef
5.11.5. #ifndef
5.11.6. #else
5.11.7. #endif
6. TAMEScript Elements
6.1. module
6.2. action
6.2.1. General
6.2.2. Transitive
6.2.3. Ditransitive
6.2.4. Modal
6.2.5. Open
6.3. world
6.4. object
6.5. player
6.6. room
6.7. container
A. TAMEScript Module Blocks
A.1. Init
A.2. Start
A.3. OnAction
A.4. OnActionWith
A.5. OnActionWithAncestor
A.6. OnActionWithOther
A.7. OnModalAction
A.8. OnUnhandledAction
A.9. OnElementBrowse
A.10. OnWorldBrowse
A.11. OnRoomBrowse
A.12. OnPlayerBrowse
A.13. OnContainerBrowse
A.14. OnUnknownCommand
A.15. OnMalformedCommand
A.16. OnIncompleteCommand
A.17. OnAmbiguousCommand
A.18. AfterSuccessfulCommand
A.19. AfterFailedCommand
A.20. AfterEveryCommand
B. TAMEScript Built-In Functions
Cues
AddCue
Text
Textln
Textf
Textfln
Pause
Wait
Values
AsBoolean
AsInt
AsFloat
AsString
AsList
Length
Empty
String Operations
StrIndex
StrLastIndex
StrContains
StrStartsWith
StrEndsWith
StrReplace
StrReplaceLast
StrReplaceAll
StrConcat
SubString
StrLower
StrUpper
StrChar
StrTrim
StrSplit
StrJoin
StrParam
RegEx
IsRegex
RegexContains
RegexFind
RegexFindLast
RegexGet
RegexGetLast
RegexGetAll
RegexMatches
RegexSplit
RegexReplace
List Operations
ListNew
ListAdd
ListAddAt
ListRemove
ListRemoveAt
ListIndex
ListContains
ListConcat
Mathematics
Floor
Ceiling
Round
Fix
SQRT
PI
E
SIN
COS
TAN
Min
Max
Clamp
IRandom
FRandom
GRandom
Time
Time
TimeFormat
Elements
ObjectHasName
AddObjectName
RemoveObjectName
ObjectHasTag
AddObjectTag
AddObjectTagToAllIn
RemoveObjectTag
RemoveObjectTagFromAllIn
GiveObject
RemoveObject
HasObject
MoveObjectsWithTag
ObjectHasNoOwner
ObjectCount
Browse
BrowseTagged
SetPlayer
CurrentPlayerIs
NoCurrentPlayer
SetRoom
PushRoom
PopRoom
SwapRoom
PlayerHasRoomInStack
CurrentRoomIs
NoCurrentRoom
PlayerCanAccessObject
ElementHasAncestor
Miscellaneous
NoOp
Identity
Header
C. TAMEScript Operators
Unary
Negate
Logical Not
Absolute
Binary
Addition
Subtraction
Multiplication
Division
Modulo
Power
And
Or
XOr
Equals
Not Equals
Strictly Equals
Strictly Not Equals
Less Than
Less or Equal
Greater Than
Greater or Equal
Binary, Logical
Short-circuit And
Short-circuit Or
Ternary
Ternary Operator
D. TAME Execution Flow
D.1. Initialize
D.2. Interpret
D.3. Command Loop
D.4. Process Command
D.5. General Action
D.6. Open Action
D.7. Modal Action
D.8. Transitive Action
D.9. Ditransitive Action
D.10. Successful Parse
D.11. Failed Parse
D.12. Unknown Command
D.13. Malformed Command
D.14. Incomplete Command
D.15. Ambiguous Command
D.16. Unhandled Action
E. Advanced TAME
E.1. Optimization
E.2. Diagrams of TAME Setups
Table of Contents
Table of Contents
Table of Contents
Engine Documentation
Version 0.9BETA20
Documentation Revision 5
(A Table of Contents is coming once ordering is finalized. For now, use the sidebar.)
×
Modal Header