Community
AGI Programming => Mega Tokyo AGI Archive => Topic started by: robingravel on January 20, 2002, 05:27:41 AM
-
For my personals reasons I changed all the logics 90 99 to higher numbers except logic 95.
I did not found a call or other commands to use logic 95 in the logic 0. The interpreter stops running if I change the number of logic 95.
Someone may help me?
Naturette II: daughter of the moon.
My logic 0:
if (v17 > 0) {
call(254);
}
if (isset(f53)) {
reset(f53);
set(f52);
call(246);
}
if (v0 == 0) {
call(248);
if (isset(f6)) {
disable.item(c20);
set(f14);
reset(f33);
new.room(2);
}
else {
set.menu("AGI");
set.menu.item("?",c21);
submit.menu();
disable.item(c20);
set(f33);
unknown171();
v3 = 0;
v7 = 54;
script.size(60);
new.room(220);
}
}
else {
unknown171();
if (isset(f255)) {
if ((v30 == 0 ||
v32 == 1)) {
v2 = 4;
}
reset(f255);
}
}
if (isset(f5)) {
load.logics(247);
load.logics(246);
call(246);
reset(f32);
clear.lines(24,24,0);
animate.obj(o0);
load.view.v(v16);
set.view.v(o0,v16);
observe.objs(o0);
animate.obj(o14);
animate.obj(o15);
animate.obj(o16);
load.view(9);
set.view(o14,9);
set.loop(o14,0);
ignore.horizon(o14);
set.priority(o14,15);
position(o14,1,20);
stop.cycling(o14);
set.view(o15,9);
set.loop(o15,5);
ignore.horizon(o15);
set.priority(o15,15);
position(o15,132,20);
set.view(o16,9);
set.loop(o16,6);
ignore.horizon(o16);
set.priority(o16,15);
position(o16,146,20);
v120 = 0;
v37 = 255;
}
if (v35 > 0) {
if (v35 != 255) {
disable.item(c21);
disable.item(c2);
disable.item(c3);
disable.item(c18);
disable.item(c16);
disable.item(c22);
disable.item(c15);
disable.item(c24);
disable.item(c28);
disable.item(c23);
disable.item(c25);
load.logics(251);
}
call(251);
}
else {
if (!isset(f33)) {
if (controller(c19)) {
menu.input();
}
}
if (controller(c21)) {
v21 = 3;
print("Naturette II: daughter of the moon.\n\nv1.0");
}
if ((controller(c28) ||
said("fastest") ||
said("fastest","speed"))) {
v10 = 0;
}
if ((controller(c23) ||
said("fast") ||
said("fast","speed"))) {
v10 = 1;
}
if ((controller(c24) ||
said("normal") ||
said("normal","speed"))) {
v10 = 2;
}
if ((controller(c25) ||
said("slow") ||
said("slow","speed"))) {
v10 = 4;
}
if (controller(c26)) {
v23--;
}
if (controller(c27) &&
v23 < 15) {
v23++;
}
if (controller(c16)) {
toggle(f9);
}
if (!isset(f33)) {
if (!isset(f32)) {
if (controller(c14)) {
set(f32);
print("Debug activated.");
version();
load.logics(255);
}
}
if ((controller(c3) ||
said("save","game") ||
said("save"))) {
stop.sound();
save.game();
}
if ((controller(c5) ||
said("restore","game") ||
said("restore"))) {
stop.sound();
restore.game();
}
if ((controller(c7) ||
said("restart","game") ||
said("restart"))) {
restart.game();
}
if ((controller(c2) ||
said("help"))) {
call(250);
}
if (controller(c9)) {
echo.line();
}
if (controller(c17)) {
cancel.line();
}
if (controller(c15)) {
init.joy();
}
if ((controller(c18) ||
said("pause","game") ||
said("pause"))) {
pause();
}
if ((controller(c10) ||
said("inv"))) {
status();
}
if ((controller(c22) ||
controller(c4))) {
set(f13);
status();
if (v25 > 0 &&
v25 != 255) {
if (v25 == 1) {
show.obj(220);
}
reset(f13);
}
}
if ((controller(c1) ||
said("quit","game") ||
said("quit"))) {
stop.sound();
quit(0);
}
}
get.posn(o0,v30,v31);
if (v6 == v34 &&
v30 == v32 &&
v31 == v33) {
stop.cycling(o0);
}
else {
if (!isset(f30)) {
start.cycling(o0);
}
}
v32 = v30;
v33 = v31;
v34 = v6;
if (isset(f31)) {
start.cycling(o0);
}
else {
if ((v6 == 0 ||
isset(f30))) {
stop.cycling(o0);
}
}
if (isset(f12)) {
clear.lines(23,24,0);
reset(f32);
disable.item(c20);
}
call.v(v0);
if (isset(f32)) {
accept.input();
call(255);
}
call(247);
reset(f4);
}
call(246);
return();
Robin Gravel
-
Go into the logic that sets up the game it is usually logic 91. In there should be this command: trace.info(95, 3, 10); see the number that says 95 that number calls that logic change that number to the number you renamed it to.
-
Thank you. It works.
8)Robin Gravel 8)
-
Your welcome. If you need anymore help just ask.