TWIGZ
Inventory Verb Files (".ivb"):
Whenever
an inventory object is selected to use on an object, with an
object, or just to be interacted with, the Inventory Verb file
for that room is accessed. Inventory Verb files are near identical
to regular Verb files with the addition of one variable. Below
is an example of a simple Inventory Verb file:
"Give"
3
4001,4002,0,0,"How am i going to do that?",0
4002,3001,0,0,"He probably doesn't want a rock.",0
0,0,0,0,"No!",0
"Open"
1
0,0,0,0,"I can't open that",0
"Close"
1
0,0,0,0,"I can't close that",0
"Pick Up"
2
4001,4001,0,0,"That's a nice stick I picked up.",0
0,0,0,0,"I can't pick that up",0
"Look At"
1
0,0,0,0,"That's a nice thing",0
"Talk To"
1
0,0,0,0,"I really don't want to talk right now",0
"Use"
2
4001,5,0,0,"Put the stick in there?~Yeah, you'd want~to
see that!",0
0,0,0,0,"I don't think I should",0
"Push"
1
0,0,0,0,"Not right now",0
"Pull"
1
0,0,0,0,"No pulling for me right now",0 |
The
".ivb" file is separated into verbs. Each verb name
in quotation marks represents the start of the data for that
verb. After each verb name is the total number of statements
for that verb. Following that is the list of all the text that
will be said by the ego (we call these lines "statements").
Any statement that starts with all zeros, like the one below,
is the Default Statement for that verb.
Below
is an example of a Default Statement:
0,0,0,0,"No
pulling for me right now",0 |
What
do all those numbers mean?:
Each "statement" is preceded by three (4)
numbers and then followed by another. A verb statement looks
like this:
ID1,
ID2, Bin Variable, Bin Var Required Status, "Text",
Script Number |
ID1
represents the Inventory Object ID, ID2 represents the other
object that the inventory object is to be used with (this number
can be from 1 to 5000, it can be an object, an actor or another
inventory item). The Bin Variable, Bin Var Required Status,
and Script Number work the same as for a regular verb file.
Note
There is
no Conversation Number added on for "Talk To"
statements, YOU CANNOT START A CONVERSATION WITH YOU
INVENTORY!
Also note
ther are NO "Walk To" statements at the end
of this file.
|
If all
criteria are not met then the Ego simply says the default statement.
Note:
Two unique IDs can only be used when dealing with the verbs:
Give & Use. If you want to make the actor say something
when he, for example, tries to open inventory object 4001 then
you must make ID1 and ID2 both 4001.
How
do I create an Inventory Verb File?
All inventory verb files can be written in your favorite, simple,
MS-DOS text editor (Windows Notepad works fine). Just make sure
there are no extra spaces (unless they are in between quotation
marks) between the commas separating the different parts of
a statement or at the end of a statement. When you are finished
save this as a ".ivb" file in your
"TWIGZ SDK\IVerbs" (thats "I
VERBS," its hard to see) folder. You can do this from notepad
by going to File, Save As, Choosing "All Files" from
the "Save as type" drop-down menu. And naming the
file "roomnumber.vrb" so if your room is room number
5, then save the file as "5.ivb"
|
|