HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem with 2x for

04-28-2004, 04:53 PM#1
Kackwiesel
Hi, I have a weird problem. I want to check each Slot of inventory if its empty or which item is in it. It works fine UNTIL my hero carryes more than 5 items.. the script just stops then. I have attached the trigger as a png.
Plz help. :\
04-28-2004, 04:57 PM#2
ThyFlame
What are you trying to accomplish? What does Speichern do?
04-28-2004, 05:07 PM#3
Kackwiesel
Ehm ok. My english isnt very good, so its hard for me to write everthing down. ^_^
Itemsave is a string that contains all itemdata so that i can run "speichern" and it will create a password with ItemSave and some Hero Stats.
"Speichern" works fine. Ive put a textmessage at the begining of it, so I know that it doesnt start. The problem occures only if I have an item in every slots. ItemSave has to produce a String like 000001002003343020.
This are 18 numbers. 3 numbers are one item. If there is no item in a slot it produces an 000.
04-28-2004, 05:30 PM#4
ThyFlame
I'm a bit upset atm... so excuse me if I end up wasting your time... but try making the if/then/else's from 6 to 7.

I think you're saving before you finish making the last item into the string.
04-28-2004, 07:58 PM#5
Kackwiesel
Quote:
Originally Posted by ThyFlame
I'm a bit upset atm... so excuse me if I end up wasting your time... but try making the if/then/else's from 6 to 7.

I think you're saving before you finish making the last item into the string.

Ive tryed it but it doesnt work. I cant imagine where the fault is. :(
04-28-2004, 08:11 PM#6
ThyFlame
I'm not so sure changing the 6 to 7 is what you need exactly. I do believe the trigger should be run after it finishes doing everything for 6, except you need to rewrite some things to do this, and I'm not doing all of that for you.

Why do you even have If XX = 6 then run speichern?

Just run it after the For integer A (1 to 6) and remove all the occurences of that in the loop. See if that works.
04-28-2004, 08:17 PM#7
Kackwiesel
Hmm. The string is complete before running the other trigger. I have added some textoutput to some of the steps, and the string is like it has to be. But The trigger just stops after the string is completed. But only if there are 6 items in the inventory. o_O

Quote:
Why do you even have If XX = 6 then run speichern?

Just run it after the For integer A (1 to 6) and remove all the occurences of that in the loop. See if that works.

Yes, you are right. Dont know why I added this.^^ I have removed all IFs and run the trigger after the loop, but it doesnt work.
04-28-2004, 08:20 PM#8
ThyFlame
This would be so much easier if you would just give me a copy of the trigger in a map.
04-28-2004, 08:31 PM#9
Kackwiesel
Ok, here it is. But the loadsystem does actualy not work, because I have reworked (or tryed to) the item-savesystem.^^
And.. do you have WE unlimited? Its necessary for this map.
04-28-2004, 08:31 PM#10
Kackwiesel
*delete me*
04-28-2004, 08:40 PM#11
ThyFlame
You didnt include itemsaven.
04-28-2004, 08:43 PM#12
Kackwiesel
Quote:
Originally Posted by ThyFlame
You didnt include itemsaven.

Hmm? What do you mean? Its in "Savesystem". o_O
04-28-2004, 08:58 PM#13
ThyFlame
Quote:
Originally Posted by Kackwiesel
Hmm? What do you mean? Its in "Savesystem". o_O

I've got Speichern, Laden, Hero Shape. Download it and look yourself.
04-28-2004, 09:07 PM#14
Kackwiesel
Quote:
Originally Posted by ThyFlame
I've got Speichern, Laden, Hero Shape. Download it and look yourself.

**** I uploaded another "Test". mhhh, Sorry for that.
04-29-2004, 01:06 AM#15
ThyFlame
Eh. I'll look at it when I have time. In the future, edit your posts instead of posting a new map each post.