Author Topic: Some logic problems....  (Read 6840 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwarfy

Some logic problems....
« on: July 20, 2004, 05:06:36 AM »
Can someone post the code, to insert an view in title screen, what is there and doesn't move, and after a time, like about 2 seconds or sth., it starts cycling, till the loop is finish. Then it has to change the loop, but just starts cycling when the first loop is done. And at the end, the last loop has to repeat pauseless....

And next, where I always have a bug is, changing the ego view... As examples, I want to sit on toilet, first what it has to do, unwear the pants (automatic if "sit on toilet"). Then sit there whitout action. And if type "sh*t" he starts, yah, to do that and after that no action again. Or wear pyjama. After he wores it, the ego view has to change....

Answers would really help me, because I just started making a new game (no wait, i'm on 2 projects. One is for testing my skills and learn more. The other one will be a real big one...)

-Dwarfy-


I feel the power! It's in my shoes! *c-walking*

Offline Eigen

Re:Some logic problems....
« Reply #1 on: July 20, 2004, 06:05:00 AM »
Hey!


v11 = 0; //will equal seconds to 0
load.view(x);
set.view(o1, x);

//other view set up stuff here //

stop.cycling(o1);

if(v11 == 2){ // if 2 seconds have passed
end.of.loop(o1,f100); // sets flag 100 on when loop has ended
v11 = 3; //will equal seconds to 3, because otherwise it would jerk until 1 second has passed (it causes a loop until seconds is not 3)
}

if(isset(f100)){
reset(f100);
set.loop(o1, 1); // the second loop
end.of.loop(o1,f101);
}

if(isset(f101)){
reset(f101);
set.loop(o1,2); // the third loop
end.of.loop(o1,f102);
}

if(isset(f102)){
reset(f102);
set.loop(o1,3); // the last loop
start.cycling(o1); // will loop over and over
}


Don't have time to write the code for poopoo at the moment. ;)


-Eigen
Artificial Intelligence Competition

Offline Dwarfy

Re:Some logic problems....
« Reply #2 on: July 20, 2004, 07:22:21 AM »
Thanks Eigen! I'll try it...
« Last Edit: July 24, 2004, 06:12:13 AM by Dwarfy »
I feel the power! It's in my shoes! *c-walking*

Offline Dwarfy

Re:Some logic problems....
« Reply #3 on: July 24, 2004, 06:12:28 AM »
Aaand.... could someone give me the other code i need?  ::)
I feel the power! It's in my shoes! *c-walking*

Offline Oliver

Re:Some logic problems....
« Reply #4 on: July 25, 2004, 06:27:18 AM »
}
if(said("sit on toilet")){
if(posn(o0, positions)[
v171 = 2;
return();
}
print("Move closer to the toilet");


if(v171 == 2){
load.view(pants down view number);
set.view(o0, pants down view number);
position(o0, near the potty positions);
end.loop(o0, f100);

if.isset(f100);
reset(f100);


this should work for the part where you take the pants down. By now I'm confused, and I need to think for the s*it part.
First try the 1st code, I'm not sure it works, but alteast I tried



 :P
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 Dwarfy

Re:Some logic problems....
« Reply #5 on: July 25, 2004, 03:27:57 PM »
Thanks Oliver!

I'll try it tommorrow morning. Now, I'm kind a tired...
I feel the power! It's in my shoes! *c-walking*


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

Page created in 0.038 seconds with 21 queries.