HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need some serious help...

03-03-2005, 04:40 PM#1
Zero
Ok, I just dun freaking get it.

I made a trigger system, if you were following on any of my other posts, that checks if items can be used by differrent classes and if there is any types of those weapons allready in the hero's inventory.

Well, today, I FINALLY got the system working flawless and even got the set items to combine and work right.

Ok, so I was like right, only thing left to do now is copy and paste and change for every other player.

Well, when I finally got done doing this and I went to test it. THE whole freaking system isn't working right now...

ITS DRIVING ME INSANE AND I CAN'T FIGURE OUT WTF IS GOING ON. Nothing has changed in the trigger set up, I just dont get it.

CAN someone plz download the map and see if they can figure out just WHAT the HELL is going on.

I would extremely appricate it :8
03-03-2005, 05:10 PM#2
logik
i will give it a squiz and see what i can do.
03-04-2005, 04:33 AM#3
Raptor--
i would, but you used some non-standard functions so i can't load the map in my waredit
03-04-2005, 08:04 AM#4
Zero
Quote:
Originally Posted by Raptor--
i would, but you used some non-standard functions so i can't load the map in my waredit

Really? I just used WE Unlimited.

That's wierd :\
03-04-2005, 11:13 AM#5
logik
World Editor Unlimited uses non-standard functions to the WE...

thats what he means... there are some non standard functions in your map, so normal WE cant open it.
03-04-2005, 09:12 PM#6
Raptor--
and i do all my work in vanilla WE, i don't like all the extra stuff WEU has, i'd rather do it myself
03-05-2005, 02:44 AM#7
Zero
Quote:
Originally Posted by Raptor--
and i do all my work in vanilla WE, i don't like all the extra stuff WEU has, i'd rather do it myself

Never heard of vanilla we. Will have to look into it.

Has anyone else been able to figure out wtf is going on with the trigger system??
03-05-2005, 03:02 AM#8
BBDino
Quote:
Originally Posted by Zero
Never heard of vanilla we. Will have to look into it.

We have a winner!
03-05-2005, 03:31 AM#9
Zero
Quote:
Originally Posted by BBDino
We have a winner!

Plz stick to the main topic. This is a serious thread.
03-05-2005, 11:02 AM#10
logik
yeh sorry, i dont use WEU either... sorry.
03-05-2005, 11:35 AM#11
Tabris
Quote:
Originally Posted by logik
yeh sorry, i dont use WEU either... sorry.
I would like to help you to but I only use WE and not unlimited... I use Jass instead...
Maybe could you translate the fonctions from unlimited to normal? ^_^
Else only a few "could" help you
03-05-2005, 11:40 AM#12
Dalten
Quote:
Originally Posted by Zero
Ok, I just dun freaking get it.

I made a trigger system, if you were following on any of my other posts, that checks if items can be used by differrent classes and if there is any types of those weapons allready in the hero's inventory.

Well, today, I FINALLY got the system working flawless and even got the set items to combine and work right.

Ok, so I was like right, only thing left to do now is copy and paste and change for every other player.

Well, when I finally got done doing this and I went to test it. THE whole freaking system isn't working right now...

ITS DRIVING ME INSANE AND I CAN'T FIGURE OUT WTF IS GOING ON. Nothing has changed in the trigger set up, I just dont get it.

CAN someone plz download the map and see if they can figure out just WHAT the HELL is going on.

I would extremely appricate it :8

I looked into it for you. Before I write the fix for this, you should really consider learning how Array's work and using those instead. You have a nice system but it could be done with 1 trigger using arrays.

The problem with your triggers though is that you are using the "Event - unit aquires an item", but then you have no immediate conditions.


Quote:
P2 Armor
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) == Player 2 (Blue)
(Item level of (Item being manipulated)) == 2

P2_Heros_Armor == False
Then - Actions
Set P2_Heros_Armor = True
Set Item_P2_Armor = (Item being manipulated)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P2_Heros_Armor == True
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Game - Display to (Owner of (Triggering unit)), at offset (0.00, 0.00) the text: |c0096ecf5You can o...
Else - Actions
Do nothing


The BOLD and UNDERLINED conditions are where the problems are. Even if a player 1 character would pick up an item, this trigger executes for them and the Else - Actions would in turn also execute. The simple fix was to move the Conditions in BOLD to the MAIN conditions of the trigger.

I did this to the Player 1 triggers and i was able to complete the set just fine. In a nutshell ALL 24 triggers were running whenever any hero of any player was picking up any item, by adjusting the conditions you can fix this.

Have fun.
03-05-2005, 11:45 AM#13
Guest
nevermind it seems your problem was fixed!
03-05-2005, 01:13 PM#14
Zero
Quote:
Originally Posted by Dalten
I looked into it for you. Before I write the fix for this, you should really consider learning how Array's work and using those instead. You have a nice system but it could be done with 1 trigger using arrays.

The problem with your triggers though is that you are using the "Event - unit aquires an item", but then you have no immediate conditions.




The BOLD and UNDERLINED conditions are where the problems are. Even if a player 1 character would pick up an item, this trigger executes for them and the Else - Actions would in turn also execute. The simple fix was to move the Conditions in BOLD to the MAIN conditions of the trigger.

I did this to the Player 1 triggers and i was able to complete the set just fine. In a nutshell ALL 24 triggers were running whenever any hero of any player was picking up any item, by adjusting the conditions you can fix this.

Have fun.

Thx so much. Such a simple fix 2 :\

It was driving me crazy. Oh, btw. I do know how to use arrays. I used them on this map for monster spawning and random item drops. I just never used them in something like this before. Just sticking to what I know :p

Thx again. You roxor