Author Topic: Big Question  (Read 4430 times)

0 Members and 1 Guest are viewing this topic.

Offline Zero

Big Question
« on: May 13, 2003, 05:20:16 PM »
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
« Last Edit: May 13, 2003, 06:03:40 PM by **** »


Zero has just programmed a post please read.

Offline Joel

Re:Big Question
« Reply #1 on: May 13, 2003, 06:43:15 PM »
look up follow.ego

Offline Zero

Re:Big Question
« Reply #2 on: May 13, 2003, 07:55:32 PM »
thanks :) what about the rest of the syuff?
Zero has just programmed a post please read.

Offline Joel

Re:Big Question
« Reply #3 on: May 13, 2003, 08:25:07 PM »
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).

Offline Eero R

Re:Big Question
« Reply #4 on: May 14, 2003, 09:39:03 AM »
Hehe, it appears whole Mega-Tokyo is soon in credits of Zero's game...
Persona grata ego sum...

Offline Zero

Re:Big Question
« Reply #5 on: May 14, 2003, 02:06:14 PM »
Ya but if anyone can give the code HERE on the board me and katie will PM them something VERY special :)
Zero has just programmed a post please read.

Offline Patrick

Re:Big Question
« Reply #6 on: May 14, 2003, 03:14:08 PM »
ok then...the code for playing a sound is:

Code: [Select]
 load.sound(127);
  sound(127,f16);


Offline Joel

Re:Big Question
« Reply #7 on: May 14, 2003, 05:23:31 PM »
This code is UNTESTED:

Code: [Select]
#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.");
  }
}
« Last Edit: May 14, 2003, 05:28:43 PM by Joel »

Offline Zero

Re:Big Question
« Reply #8 on: May 14, 2003, 05:58:21 PM »
Great if it works you will get the special thing.... we will give you.... :)
Zero has just programmed a post please read.

Offline Oliver

Re:Big Question
« Reply #9 on: May 17, 2003, 02:05:18 AM »
we?
You got it!
The New website of Extime is ready!
http://www.hot.ee/extime
Also, there is a message-board at:
http://www.zone.ee/eostuff/forum/index.php

Offline Patrick

Re:Big Question
« Reply #10 on: May 17, 2003, 08:17:22 AM »
Am i gonna get it or Joel ???


Offline Oliver

Re:Big Question
« Reply #11 on: May 18, 2003, 02:02:13 AM »
Cut it to two pieces, then you can both have it! :D
You got it!
The New website of Extime is ready!
http://www.hot.ee/extime
Also, there is a message-board at:
http://www.zone.ee/eostuff/forum/index.php

Offline Patrick

Re:Big Question
« Reply #12 on: May 18, 2003, 10:42:51 AM »
ok...what is it?



SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.052 seconds with 21 queries.