Author Topic: View Problems  (Read 8255 times)

0 Members and 1 Guest are viewing this topic.

Offline Patrick

Re:View Problems
« Reply #15 on: April 08, 2002, 05:40:29 PM »
Message 15 WOW! We are now a Hot Topic, kind of like the store! 8)


Offline Chris Cromer

Re:View Problems
« Reply #16 on: April 08, 2002, 05:43:36 PM »
15 isn't really that big of an ammount of replies. I have seen some with above 300 replies but not at this board though...
Chris Cromer

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

Offline Patrick

Re:View Problems
« Reply #17 on: April 08, 2002, 05:55:54 PM »
Oh...well... :-\ ... I thought it was special...


Offline Patrick

Re:View Problems
« Reply #18 on: April 08, 2002, 05:58:27 PM »
 :-\  Well joel, I tried yours too and It didn't effect (or mabye affect?) my view's disapearance.

Maybe it is me ??? Who knows  ???.



Offline Patrick

Re:View Problems
« Reply #19 on: April 08, 2002, 06:12:31 PM »
Hey Chris, I really couldn't help but wondering,
what is your member picture thing of?


Offline Andrew_Baker

Re:View Problems
« Reply #20 on: April 08, 2002, 06:16:54 PM »
The garbage characters you're getting in your inventory may be the result of using an old save game after changing some code.  There's a couple older threads on this board on that topic.

The first block of code in any logic is the initialization.  That's why it's headed if (new_room) {...}.  Any code to be executed when the character enters a room should be placed here.  This is where your object_in_room?  test should be placed.

Also, remember that AGI is a cantankerous old shrew of a proprietary scripting language designed for an abandoned platform (IBM PCjr).  It is full of all kinds of strangeness.  Therefore, know in your heart that you only ask questions any beginner would have.

Hope all that helps.
I hope you realize that one day I will devour the Earth.

Offline Chris Cromer

Re:View Problems
« Reply #21 on: April 08, 2002, 06:22:57 PM »
I am into giant fighting robots(sort of like nukem dukem robots from SQ3) that is called a Gundam, it is from a japanese anime series called Gundam Wing. That one is the Death Scythe(my favorite one) I host it on my server so it isn't one of the user pics here at the board.

I also have this one , it is called the eypon and it too is from the Gundam Wing series. I have these plus a whole bunch more for my avatars at my new message board here. and a few AGI characters and other various things like Mega Man doing a funny dance.

Well anyway if you want to check out the gundam stuff it is at http://www.gundamofficial.com
Chris Cromer

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

Offline Patrick

Re:View Problems
« Reply #22 on: April 08, 2002, 06:24:37 PM »
THNKZ Andrew_Baker
that does help! 8)

SMG240


Offline Patrick

Re:View Problems
« Reply #23 on: April 08, 2002, 06:27:26 PM »
Chris,
OHHHHH! That is what I thought that It was but I couldnt tell! I kinda watched that when it was on (it is off air isn't is?) but I couldn't watch it much because I don't have cable!  :-[


SMG240


Offline Chris Cromer

Re:View Problems
« Reply #24 on: April 08, 2002, 06:36:40 PM »
Yeah Gundam Wing isn't on the air anymore. Infact I don't think any of the gundam series are on the air anymore. But I have some of the series on video. :)

I also have 2 of the dvd/movies as well: Gundam Wing: Endless Waltz and Gundam Saviour.

Gundam Saviour was really good, they used CG graphics on the gundam so instead of the anime look it has a more realistic look. Plus they used real actors with sets. :)

I also like to build the models of the gundam, I just built the High Grade version of the Heavy Arms custom. I also have some views of gundams drawn up and am planning on making a gundam game in SCI and maybe a AGI version as well. :)
Chris Cromer

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

Offline Joel

Re:View Problems
« Reply #25 on: April 08, 2002, 07:53:17 PM »
Are you sure you're not executing a draw(sword); command anywhere else?

By the way, what I meant was for that code to appear in the new_room section of the logic as well, as in:

Code: [Select]
if (new_room)
{
  // other new_room code here

  if (obj.in.room("sword", room_no))
  {
    // all the stuff in here
  }
}

I don't think it's you that's the problem. But if what I suggested doesn't work then there's a good chance that there's something else you're doing in your code that we can't see that's causing the problem, because I used that code in my game and it works ok. Did you also make sure to execute a get("sword") command in the if (said("get", "sword")) section?
« Last Edit: April 08, 2002, 07:54:35 PM by Joel »

Offline Patrick

Re:View Problems
« Reply #26 on: April 08, 2002, 08:46:21 PM »
Wait a minute... is the obj.in.room the same as draw()?
I only have draw() once and i put that on top of the command block and tried to test it.

When I got the sword, it erases, but if I leave the room, and come back, the original sword is there! Is there any comand like


if(has("sword")); {
 erase(o8);
}

or anything like that , that I could enter in to the initialization?

SMG240


Offline Chris Cromer

Re:View Problems
« Reply #27 on: April 08, 2002, 09:36:22 PM »
if(has("sword")); {
 erase(o8);
}

Yes that would work, but why make extra code just don't draw it in the first place by using

if (!has("sword")) {
 draw(08);
}

This way it will draw the sword if you don't have it and if you do have it then it will never be drawn in the first place. I would also add the load.view(n); and all that stuff in there so that the game won't load it unless it is supposed to be drawn:

if (!has("sword")) {
 animate.obj(08);
 load.view(20);
 set.view(o8,20);
 draw(o8);
}
 
This is how I would go about it.
Chris Cromer

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

Offline Patrick

Re:View Problems
« Reply #28 on: April 09, 2002, 08:15:03 PM »
 :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)
8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8)

IT WORKED!!!! THANK YOU!!! YIPEE!!

...
It worked Chris! Thanks a million!

SMG240


Offline Joel

Re:View Problems
« Reply #29 on: April 09, 2002, 08:25:29 PM »
if it works, that's cool -- however, I think I should point out that the obj.in.room solution is basically the same thing. You should only draw the object if obj.in.room is true. If you were doing something like this:

Code: [Select]

draw(sword);

if (obj.in.room("sword", room_no))
{
 // whatever here
}


then that's why your code wasn't working before. The draw(sword) should only appear like this:

Code: [Select]

if (obj.in.room("sword", room_no))
{
 draw(sword);
}


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

Page created in 0.068 seconds with 22 queries.