Author Topic: VIEW Artisting---Then inserting it into my game!!  (Read 7135 times)

0 Members and 2 Guests are viewing this topic.

Offline Patrick

VIEW Artisting---Then inserting it into my game!!
« on: July 22, 2002, 01:20:17 PM »
Does anyone know a special way to draw VIEWS for things like a guy with a sword that is slinging it?

I have 5 different Views(*cels...Sorry 7/23/02)


1.   Upright with sword in hand

2.   Right leg foward with sword at a 45 degree angle

3.   Sword straight at a 90 degree angle with right leg slightly out more.

4.   Same as 2

5.   Same as 1


I think that it really looks stupid but it will have to work!


So now what do I do to have a sword fight between EGO and O1? I want EGO to go up and say "SPEAK", and then the dude says "DO YOU HAVE A SWORD?" And then if you type "YES" you fight him and if you type "NO" you dont fight him... so here is the breakdown

EGO says  SPEAK
O1   asks  DO YOU HAVE A SWORD
EGO chooses YES or NO
if YES then EGO changes to view 48
if YES then O1's view changes to view 49
if YES then EGO moves to 100,105
if YES then O1 moves to 105,105
if YES then O1 and EGO animate their views in turns (4)
if YES then O1 changes his view to 50 (he is dead!)
if YES then sound 255 plays
if YES then the O1 is erased from the screen forever after you recieve I9-Swordman's Green Coins


If NO O1 says COME SEE ME WHEN YOU DO


Does anyone know how to put this all into LOGIC?

I would really appreciate it if anyone could help me!

THAnKS
SMG240
« Last Edit: July 23, 2002, 11:34:48 AM by smartguy240 »




Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #1 on: July 23, 2002, 07:21:15 AM »
I think it would be something like this:

if (said("speak")) {
  print("Do you have a sword?");
  print("Say yes or no.");
}
  if (said("Yes")) {
  erase(o0);
  erase(01);
  load.view(48);
  set.view(o0,48);
  load.view(49);
  set.view(o1,49);
  move.obj(o48,100,105,1,f60);
  move.obj(o49,105,105,1,f61);
  animate.obj(o48);
  animate.obj(o49);
  end.of.loop(o48,f62);
  end.of.loop(o49,f63);
}
if (f62);
 start.cycling(o48);
}
if (f63);
  erase(o49);
  load.view(50);
  set.view(o49,50);
  load.sound(what ever sound it is. for example 50);
  sound(50,f64);
}
if (f64);
  erase(o50);
  get(I9-Swordmans Green Coins);
}


This code should work but may have some bugs. If it does tell me and ill fix the code.

Good Luck!

 

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #2 on: July 23, 2002, 07:23:52 AM »
whoops i forgot something.

if (said("no")) {
 print("Come see me when you do.");
}


you can place that code where ever you want.

Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #3 on: July 23, 2002, 10:34:16 AM »
Ok....I will see how it works! Thanks!

SMG240


Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #4 on: July 23, 2002, 11:33:51 AM »
I changed it to this:

if (said("speak")) {
 print("Do you have a sword?");
 print("Hint: Say YES or NO");
}
 if (said("Yes")) {
 erase(o0);
 erase(o10);
 load.view(48);
 set.view(o0,48);
 set.loop(o0,3);
 load.view(49);
 set.view(o10,49);
 set.loop(o10,0);
 move.obj(o0,100,105,1,f60);
 move.obj(o10,105,105,1,f61);
 animate.obj(o0);
 animate.obj(o10);
 end.of.loop(o0,f62);
 end.of.loop(o10,f63);
}
if (f62){
 start.cycling(o0);
}
if (f63){
 erase(o10);
 load.view(50);
 set.view(o10,50);
 load.sound(50);
 sound(50,f64);
}
if (f64){
 erase(o10);
 get(i8);
 set.view(o0,0);
}

if (said("no")) {
 print("Come see me when you do.");
}
}
return();
But when you say, SPEAK, it says   I DO NOT UNDERSTAND YOUR REQUEST.

I know it probabally has to do with the } 's because my problem is ALWAYS with the } 's !!

So... can anyone help me with this?

SMG240


Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #5 on: July 23, 2002, 12:39:59 PM »
did you put the work speak in the words.tok file.
you know you go into words.tok editor in AGI Studio.
And by the way, whats the name of your game?
just wondering.

-Joey

Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #6 on: July 23, 2002, 12:43:07 PM »
I have about 9 forms of speak in my Words.tok file

So far my game is very plottless and it is called Patrick's Quest AGI Because I have Patrick's Quest on RPG Maker 95 and 2000!

If anyone has a good plot for me, I could give it a try!

SMG240
P.S. Did you see what was wrong else with my edited version of the Sword person?


Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #7 on: July 23, 2002, 12:44:59 PM »
if you did put it in words.tok I think you messed something up. you put
erase(o10);
i thought it was o1 that was going to be erased. I think the reason it is saying i do not understand your request is because there is a bug in the  code. the erase(o10); may be it. and make sure that view 1 is already in the screen when you play it.

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #8 on: July 23, 2002, 12:48:24 PM »
also you put set.loop(o0,3); and a lot of other things with o0. i think it is not going to understand that because o0 is now 48. i think you'd have to do set.loop(o48,3); and the same with move.obj(48,.....
and all the other code that involves you except erase(o0); try that and get back to me.

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #9 on: July 23, 2002, 12:54:40 PM »
did it work?

Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #10 on: July 23, 2002, 03:18:25 PM »
Well, o0 is my ego and o10 is the man with the sword.

I think that o0 stays o0 even if it changes views because i have o0 in my defines.txt as my ego and I have o10 on the top of my page of logic as the man.
Loop3 on view 48 is the loop I want to animate. Loop  0 on view 49 is the loopI want to animate... I have had this happen before on things where i tried to talk to someone in my game after I changed something and I got a message saying I DO NOT UNDERSTAND YOUR REQUEST.  Maybe we should check the }'s and the other parts, the compiler reads it, and says that it complied successfully, but I cant talk to the friggin man!

I dont know what is wrong


Smg240


Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #11 on: July 23, 2002, 03:34:40 PM »
i think i figured it out. there is an extra { at the end of the file. get rid of the { before return();
if it says { expected at end of file, then there is a bug in the code. i will keep looking for the bug

Joey

  • Guest
Re:VIEW Artisting---Then inserting it into my game!!
« Reply #12 on: July 23, 2002, 08:27:42 PM »
well.......
did it work?

Offline Patrick

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #13 on: July 23, 2002, 11:26:00 PM »
It must be a bug because it said that } wasnt at the end of any command blocks.

SMG240


Offline Chris Cromer

Re:VIEW Artisting---Then inserting it into my game!!
« Reply #14 on: July 23, 2002, 11:41:01 PM »
Could you show me the entire logic? I think I know what the problem is but for me to be sure I would need to see the whole thing.

Joey, the bug isn't in the code displayed, but I beleive the bug is where he put the code you gave him. If he put it in the spot I think he did then it would not work... so just show me the entire logic so I can see what is going on.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)


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

Page created in 0.029 seconds with 16 queries.