Author Topic: HELP! PLEASE! HELP!  (Read 1972 times)

0 Members and 1 Guest are viewing this topic.

Keith

  • Guest
HELP! PLEASE! HELP!
« on: August 12, 2002, 04:14:28 PM »
I know I posted a similar topic, but I desperately need to know how to create inventory items. The template game has you implementing a radio. I understand how to do that. But I'm having difficulty adding another item. I read the defines.txt and it said something about changing num_inventories(?). And what's v255? For the source code I've written read my previous topic. Thanks. Please help!



Offline robingravel

Re:HELP! PLEASE! HELP!
« Reply #1 on: August 12, 2002, 04:24:30 PM »
V25 is used for inventory. V255 is used for something else.

Robin Gravel

Keith

  • Guest
Re:HELP! PLEASE! HELP!
« Reply #2 on: August 12, 2002, 04:28:17 PM »
OK. But how come when I use another variable (v254) for a different object and make it equal to 2 the object doesn't appear. But if I make it equal to 3 the object appears?

And when I type gimme gimme, one of the objects does not appear in my inventory?

I hope I'm making sense. Thanks.

Offline robingravel

Re:HELP! PLEASE! HELP!
« Reply #3 on: August 12, 2002, 04:37:53 PM »
There's a problem with the template specialy "gimme gimme" thing.

Change v255=0 to v255=1. It should work.

Robin Gravel

Keith

  • Guest
Re:HELP! PLEASE! HELP!
« Reply #4 on: August 12, 2002, 05:27:00 PM »
I think I have found a solution. Please tell me if it is accurate: I didn't include any v255 thing and, instead, set the v to 0. For example:

 animate.obj(rose);
 load.view(3);
 set.view(rose,3);
 set.loop(rose,0);
 set.cel(rose,0);
 position(rose,58,125);
 set.priority(rose,11);
 ignore.objs(rose);
 stop.cycling(rose);

 if (obj.in.room("rose",v0)) { draw(rose); }

 animate.obj(candy);
 load.view(4);
 set.view(candy,4);
 set.loop(candy,0);
 set.cel(candy,0);
 position(candy,60,150);
 set.priority(candy,11);
 ignore.objs(candy);
 stop.cycling(candy);

 if (obj.in.room("candy box",v0)) { draw(candy); }


It works, but is it buggy? Thanks Robin for helping.

Offline CapTAmerik@

Re:HELP! PLEASE! HELP!
« Reply #5 on: August 13, 2002, 03:18:49 AM »
I remember this problem. I too have problems having a 'puppet' appear in my inventory. To me, changing v255 would be strange, because the other inventory-objects (money, a pass, a key) DO appear in the inventory screen.

I've put the puppet in the object-editor and addressed views to it. I made the necessary logic. Even updated the number of objects in defines.txt. But still object nr. 5 won't show up. It won't even get me the object in debug mode with 'get object', let alone 'gimme gimme'.

"Object 5 does not exist" or something similar.

I'm sure I'll figure it out eventually, though, :-). I like puzzling to make the script work... (although sometimes very tiring.. :P)

CaptAmerik@

I am mentally divergent, in that I am escaping certain unnamed realities that plague my life here. When I stop going there, I will be well. Are you also divergent, friend?
~ Mentally ill, 12 Monkeys

Offline Chris Cromer

Re:HELP! PLEASE! HELP!
« Reply #6 on: August 13, 2002, 04:06:32 AM »
You have to open up defines.txt and change the number of inventory objects in the game to the ammount that you have. Then compile logic 99, 0, and 91 and it should fix the gimme gimme thing, and the get object thing as well.
Chris Cromer

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

Offline Joel

Re:HELP! PLEASE! HELP!
« Reply #7 on: August 13, 2002, 10:11:05 AM »
No, using v0 should not be buggy. However, I'd suggest using its define name so that it's clear why you're using it. v0 is the reserved variable called "room_no".


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

Page created in 0.036 seconds with 20 queries.