Big Question

Zero2003 i need to know the code for this
this is what it will look like
sound comes on
text: on no the evil monster is chaseing after you

if the monster touches you then you die
to kill the monster you have to type '' Kill monster with dagger'' then the monster view will be gone then so other text will come up.


( also monster has to folowwing you)
( and you can say the kill thing regradless of the postion)



Remember your name goes in the credits if you can give me the code :)


this is also my 100th post!!!!!!!! YAYAYAYAYAYA
Joel look up follow.ego
Zero2003 thanks :) what about the rest of the syuff?
Joel from AGI Studio, go to the Help Menu, choose Contents, click on Logic Help, then click on Commands By Category

most of your questions can probably be answered by doing that. the command to play a sound is sound -- which is listed under the "Sound commands" section of the Commands by Category part of the help file.

you don't need to do anything special to disregard the position of ego in relation to the monster. you just do a regular said test. making the monster disappear is a matter of using the erase command (listed under "Object/view commands" section of the Commands by Category part of the help file).
Eero R Hehe, it appears whole Mega-Tokyo is soon in credits of Zero's game...
Zero2003 Ya but if anyone can give the code HERE on the board me and katie will PM them something VERY special :)
smartguy240 ok then...the code for playing a sound is:

load.sound(127);
sound(127,f16);
Joel This code is UNTESTED:


#define oMonster o1

#define fSoundDone f200
#define fMonsterReachedEgo f201

// obviously, these numbers are just example numbers
#define MONSTER_VIEW 75
#define SCARY_MONSTER_SOUND 127
#define MONSTER_INITIAL_X 3
#define MONSTER_INITIAL_Y 100
#define DEATH_TYPE_MONSTER 60

if (new_room)
{
// all your new room stuff

animate.obj(oMonster);
load.view(MONSTER_VIEW);
set.view(oMonster, MONSTER_VIEW);
position(oMonster, MONSTER_INITIAL_X, MONSTER_INITIAL_Y);
draw(oMonster);
follow.ego(oMonster, 3, fMonsterReachedEgo);
load.sound(SCARY_MONSTER_SOUND);
sound(SCARY_MONSTER_SOUND, fSoundDone);
print("Oh no the evil monster is chasing you.");
}

if (fMonsterReachedEgo)
{
reset(fMonsterReachedEgo);
death_type = DEATH_TYPE_MONSTER;
print("The monster got you. You're dead.");
}

if (input_recieved && !input_parsed && unknown_word_no == 0)
{
if (said("kill", "monster", "dagger"))
{
stop.motion(oMonster);
erase(oMonster);
print("You killed the monster.");
}
}
Zero2003 Great if it works you will get the special thing.... we will give you.... :)
Oliver we?
smartguy240 Am i gonna get it or Joel ???
Oliver Cut it to two pieces, then you can both have it! :D
smartguy240 ok...what is it?