HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

item storage

05-25-2004, 12:48 PM#1
logik
if u look below i made a thread earlier asking about multi-boards...

i spent ages playing around with it and i made the following things

- a map where it had an icon of archer, footman and peasant going vertically down... and across the top it was labeled "teal" and "blue"... when you killed a footman belonging to teal, it will but a 1 in the "teal" column...

there are 10 footmen,archers and peasants belonging to teal and blue. and you just kill them...

this was my first multi-board attempt, and i am very proud at how i picked it up.



- The second map was a little more complex... i worked a little from the hero creationg map found in the repository and with that i was able to create a navigate-able multiboard in which when you go through the list of 5 options ( North West, North East, Center, South West and South East) using the arrow keys. Then when you hit Escape, you will be teleported to one of the afore mentioned places on the map.

there is a download available for that map...


- the next i was attempting is a multi-board that acts as an inventory... But... i have given up though... i have gotten to the stage where it has the items etc...

this is where we hit the business end of things. what i am wondering is if someone can tell me or do it for me, to make a it so, when you select one of the inventory items it will drop it into the inventory... to put items in i was thinking an item/dialog - i dont know. help would be much ablidged

i think i have done good progress for one day.

multiboards2 is the teleport one. multiboards 3 is the once i am having difficulty with...
05-26-2004, 08:30 PM#2
johnfn
I can't exactly tell what you are asking. If you could be more specific it would help greatly. But I think you just want to add the items in the inventory to an array with the item types and then display the array on the leaderboard. However I dont know because I cant tell what you are asking.


400 posts! Yeah!!
05-27-2004, 01:32 AM#3
logik
Yes i am talking about using an item array of 10, to display the chosen items in a multiboard on the top of the screen. using the arrow keys you navigate the multiboard and select an item in the multiboard with ESCAPE. some how the items can be put into the multiboard, and when you select one using the arrow keys and escape, it will divert into your inventory, if you have no room in the inventory it will drop to the ground.

and by the way. johnfn, if you only post to say you dont know how to do it, please dont waste my time...
05-27-2004, 02:02 AM#4
weaaddar
johnfn's post served a valuable purpose of postcount++.

As far as I can tell the hero creation system that Osiris did, does have something along the lines of storing an item on the multiboard.

Anyway, practicality wise the multiboard is a very boring way to do it. and is as non intutive as it comes. (you need to have camlock or else your screen flies away when you press any key input.) I suggest a much more pleasing and more easy to function method like my drag and drop backpack , however to each his own.
05-27-2004, 02:43 AM#5
logik
yes yes i have you backpack, and other various backpack mods. though i still want to know how to divise such a system for knowledge and the fact that it is always there, and easy to use and configure.

and about the drag and drop pack pack.

it uses jass, and though i know various other coding languages and can piece through it, its not worth the effort i think, there are so many things to go through...

also i have found a bug with your backpack,you can add 4 stat enhansing items ei claws of attacks and gloves of haste to one fold, mana items eg sobi masks to another fold. so then when you enter a battle you enter your backpack, and you gain the bonuses when look at the strength/damage modifying items and then when low on mana you change the fold over to where the mana items are held... just a bug i'd like 2 report.

though i love your backpack thing, i dont want to go through the hassle of editing all the JASS etc.
05-27-2004, 04:31 PM#6
logik
ok i have made a massive amount of progress on the item system, but there is still a giant big that i know what the problem is, but can't be bothered doing now ( its 12:30am )

so heres the maps have a look and see if you can help... i think the bug is where...

every 0.01 seconds it checks each inventory slot of the hero and adds each one to an array..

slot 1 = 0
slot 2 = 1
etc.

and so that keeps the items updated constantly

now, when the dialog pops up, what it is suppose to do is set store as the corresponding button pushed (i'm just starting small and building up in complexity)

ie.

button pushed

button = dl1

set store [1] = slot [0]
remove item in slot [0]...

and see the problem is... store [1] will run off of slot [0], meaning when slot [0] is changed store [1] will change along with it...

can someone please give me a bit of help... by the way, i dont want any jass for it, id rather not piece through it...
05-27-2004, 06:43 PM#7
weaaddar
why would you need to know jass to use my backpack? My backpack is the most userfreindly of all my creations found in D+D++, just pick it up and your hero automatically can use it. You'll see that initilization only messes with my paladin not with my demon hunter yet they can both use the backpack.
05-27-2004, 08:10 PM#8
johnfn
I'm rather dissapointed that after you derep me about a worthless post you go ahead and double post. Tsk tsk.

And, my post did have information. You said
Quote:
Originally Posted by logik

to make a it so, when you select one of the inventory items it will drop it into the inventory

I'll criticise your grammar later, the important thing is I answered your question:

Quote:
Originally Posted by johnfn
...you just want to add the items in the inventory to an array with the item types and then display the array on the leaderboard...

Anyway, back to other matters. Its a waste of time, as well as being incredibly laggy, to check every 0.01 seconds for a change. Instead, just have a trigger run every time the hero picks up an item, or drops an item.

And about your other problem. You say you dont want to change store[#]. At least, thats what I can ascertain from what you typed. So here's what you do. Make another array called storetemp. Set the storetemp[] array to the store[] array before you switch, and then set back the store array. At least, I think thats what you asked. I really can't be sure.


Your grammar is starting to bother me. Pardon me while I vent some steam. (bold is a grammatical error)

Quote:
Originally Posted by logikl
so heres the maps have a look and see if you can help... i think the bug is where ...

every 0.01 seconds it checks each inventory slot of the hero and adds each one to an array ..

If anyone thinks I'm being overly critical, let them know its only a way I'm venting steam.
05-28-2004, 02:28 AM#9
logik
i dont mind... i know i have bad gramma and stuff... and if u want me to verify, this is a forum, this is the internet, gramma is nearly extinct on the internet or underly used - thats just my opinoin (sp lol?) ....

and by the way, i should judge u for venting, i my self was venting before... i think the 2 occurances cancel each other out (thats just me)...

soz... and double posting??? oh well, i dont want to wait for someone to post so i can post my maps and problem...



and with your backpack, i am just saying i currently dont want to piece through the JASS... i might later... also i was playing with your rpg engine i find it a great asset, but your description on editing it a bit vague?? do you mind explainging a bit more?
05-28-2004, 06:26 PM#10
weaaddar
The API is commented to the brim in DT4a, as far as item editing I think its pretty straight forward just see how the demo items look and just copy and paste fields.
05-31-2004, 03:29 AM#11
logik
but what about the other scripts??? like the one that creates a paladin???

and how do you give the ability to the unit???

what bout the people who cant go through JASS and find where it says create_paladin or something in the jass???


(soz... Venting a little)
05-31-2004, 01:50 PM#12
weaaddar
I'm almost positive that the trigger your speaking of is written in the gui, its in the test trigger folder if I have one in DT4a (I don't remember haven't touched it in months). Edit:
Its in make frodo, heres the whole trigger:
Code:
Make frodo
    Events
        Time - Elapsed game time is 0.25 seconds
    Conditions
    Actions
        Unit - Create 1 Ring Bearer for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        Custom script:   call setUpHero(GetLastCreatedUnit(), 6, -1,-1,3,4,-1)
        Unit - Create 1 Archmage for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        Custom script:   call setUpHero(GetLastCreatedUnit(), 6, -1,-1,3,4,-1)

Also, I said throughout the thread and throughout the API that DT4a is for advanced map maker. If you can't peice through the very light jass used in the init trigger then unfortuantly DT4a may not be for you.

As far as the D+D++, its uncommented because its a beta and the code can change very rapidly. I just know for instance completely reworked how spellbook does its magic. Most of the APIs functions changed so I wouldn't want to say "Oh you do this and this" and then when I forget to change the comment people will be yelling at me.

Also, for whoever derepped me, the third post wasn't an advertisement it was an answer to the guys question, nice reading skills.
06-02-2004, 12:28 AM#13
logik
i understand dt4a, its just i didnt know how to get rid of him... guess i didnt look hard enough :S oh well...