Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, RealSerious3D, BrainSailor), 1,265 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 3
Page 2 of 4 1 2 3 4
Re: Inventory Code [Re: mufasa] #26432
05/07/04 05:46
05/07/04 05:46
Joined: May 2004
Posts: 5
M
mufasa Offline
Newbie
mufasa  Offline
Newbie
M

Joined: May 2004
Posts: 5
Hehe i m not a sucha noob after all.Look woot i finded u said that:



chapter1
Test_object
Its only for testing.
Only testing purpose
That were three descriptionlines
1
0
50
END


somthing is missing here is suposed to look like this:

chapter1
Test_object
Its only for testing.
Only testing purpose
That were three descriptionlines
1 //category 1-7
0 //=1 cant be sold
0.5 //=good scale value
50 //=gold worth
END



Re: Inventory Code [Re: mufasa] #26433
05/07/04 09:18
05/07/04 09:18
Joined: May 2004
Posts: 5
M
mufasa Offline
Newbie
mufasa  Offline
Newbie
M

Joined: May 2004
Posts: 5
Man if u have a little time plz post here..Ok so i fix the item inv stuff .
Now the code u gave me didnt worked,when i aproached the item,the engine blocked.So maybe u can put an example here if u want to help me and the others whom gona read.:)

An example of the code ,like i want to pick up a gun...and it shows in inventory and when i press that gun in inventory it will equip on me.

When i open the inventory and i navigate trough the inventory with WASD or ARROWS key,it moves the characater too .How can i stop that?

And one last thing i want to pickup an item several times.Let say i pickup 2 medipaks and when i press enter it gives me life and removes 1 from inventory...

If u have time maybe u will help me,if not it ok:)
Thnx man

Re: Inventory Code [Re: mufasa] #26434
05/07/04 21:12
05/07/04 21:12
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
The engine blocked? Are you sure you inserted the right value for skill1?

I guess the gun was too big because you inserted a wrong scale-factor, but you already fixed that...

To stop the player from moving, you could insert

freeze_mode = 1;

at the beginning of each inventory-showing-function and

freeze_mode = 0;

at the end.

You can have each item as often in your inventory as you want, so that's no problem

To remove an item from the inventory just use

In Antwort auf:


take_item(a,b);
a=ID
b=Number of objects to remove




in the object-function.


Its hard for me to guess how much help you need, so just ask again if you want more help for the object-functions or other stuff.

Oh, thanks for reporting the mistake in the readme! Sorry for that, I wrote it quick
Anyway, hes right, so be sure to insert a scaling-factor!!!

Last edited by Error014; 05/07/04 21:14.

Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: Inventory Code [Re: Error014] #26435
09/26/04 09:06
09/26/04 09:06
Joined: Nov 2002
Posts: 148
Italy
Leon Offline
Member
Leon  Offline
Member

Joined: Nov 2002
Posts: 148
Italy
Ok well i'm using this script since a few weeks and i have to say that the person who did it has a great programming knowledge and does know well how to work with strings.. but why releasing the script with yet many bugs..
for example?

FIRST BUG
in the original script the function attached to the name of the model is not working.. no matter is writing a name with spaces or without
I fixed that myself (wasn't easy).. whatever.. it's a bug

SECOND BUG
You can pick up an object and give it the value "amount"
let's say three small throwing knives
the bug: i pick the object up and i have three axes, i drop one of the three axes.. now i have two of them.. i pick it up again and i have again 3 axes + 2 = 5
etc etc.. this action is called dupe objects..
the fix right now it to assign to the object always a quantity of one
but.. it's a bug

THIRD BUG
The worst problem .. the one that a medium level programmer (me) can hardly be able to correct.. you cannot create more than 9 objects.. ?!?!?!
why? because for example

chapter1
it's a life potion

chapter2
it's a mana potion

etc etc

chapter10
it's a scroll of whatever

now i go and pick object 10 and what do i get? the graphic of the scroll but the name (and so consecutively the function) and the description, goldworth etc of chapter1 which is the life potion.. that means that the file reads only the first char after "chapter" .. which is 1 and the 0 after the 1 is ignored.

Now i don't care for the previous two bugs but could i AT LEAST get some help to solve the third problem? because since the script is not mine it's too hard to manage with learning all the script and find where the problem is located..

help, please


Pietro Nifosė >> digital artist / game developer My Personal Portfolio
Re: Inventory Code [Re: Leon] #26436
09/26/04 10:13
09/26/04 10:13
Joined: Nov 2002
Posts: 148
Italy
Leon Offline
Member
Leon  Offline
Member

Joined: Nov 2002
Posts: 148
Italy
forget it i've been able to solve the problem by myself.. had to analize and study the code though..


Pietro Nifosė >> digital artist / game developer My Personal Portfolio
Re: Inventory Code [Re: Leon] #26437
09/26/04 21:59
09/26/04 21:59
Joined: Jul 2002
Posts: 3,208
Germany
Error014 Offline OP
Expert
Error014  Offline OP
Expert

Joined: Jul 2002
Posts: 3,208
Germany
FIRST BUG - never occured on my project. Strange, but well, maybe the name of your object was too long or something? Otherwise I can't explain that.

SECOND BUG - I guess it's because a mistake in the objectaction. Or a mistake in my inventory, of course

THIRD BUG - I just tested it and I can have more than 10 objects.

But it might be that I just corrected my script for my own project some time ago

I don't know how much interest is still in this inventory... If it's enough I may upload my script, on which none of these bugs occured...


Perhaps this post will get me points for originality at least.

Check out Dungeon Deities! It's amazing and will make you happy, successful and almost certainly more attractive! It might be true!
Re: Inventory Code [Re: Error014] #26438
09/27/04 01:05
09/27/04 01:05
Joined: Nov 2002
Posts: 148
Italy
Leon Offline
Member
Leon  Offline
Member

Joined: Nov 2002
Posts: 148
Italy
I don't know man, maybe it's incompatible with the new templates

that's not all anyway there are more bugs..
for example

FORTH BUG
in one section you have 5 windows objects but you can add more and all the position scrolled..

let's say we have 7 objects in the inventory..

you use and remove the number 5 which is the point of connection to scroll to the next one originally not displayed and guess what you cannot display it

Visual example

Position 1 : Object One (Displayed)
Position 2 : Object Two (Displayed)
Position 3 : Object Three (Displayed)
Position 4 : Object Four (Displayed)
Position 5 : Object Five (Displayed)
Position 6 : Object Six (Not Displayed)
Position 7 : Object Seven (Not Displayed)

You do something with object Five so it's removed from the list and now you have

Position 1 : Object One (Displayed)
Position 2 : Object Two (Displayed)
Position 3 : Object Three (Displayed)
Position 4 : Object Four (Displayed)
Position 5 : Empty
Position 6 : Object Six (Not Displayed) <-- and you cannot scroll and display this
Position 7 : Object Seven (Not Displayed) <-- and you cannot scroll and display this

anyway i fixed all of those bugs.. but it's for you to know if you still want to provide the source code to other people!

Good luck


Pietro Nifosė >> digital artist / game developer My Personal Portfolio
Re: Inventory Code [Re: Leon] #26439
08/20/05 04:56
08/20/05 04:56
Joined: Jul 2005
Posts: 187
L
lostzac Offline
Member
lostzac  Offline
Member
L

Joined: Jul 2005
Posts: 187
Is there any way I can get the code you were speaking of as I am using this as a basis for my project, and if there is a version thats bug free I would definetly be interested..


John C Leutz II

Re: Inventory Code [Re: lostzac] #26440
08/20/05 10:13
08/20/05 10:13
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
dude, this was posted 1.5 years ago...


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Inventory Code [Re: Helghast] #26441
08/22/05 08:34
08/22/05 08:34
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
he's lost u know


"Yesterday was once today's tomorrow."
Page 2 of 4 1 2 3 4

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1