• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help-items

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
NO ONE WILL WRITE THE TRIGGERS FOR YOU!
You can try reading tutorials on how to do it or even dl spell systems that do this but no one will make the system for your map unless you show how good your maps is.

Well basicly you have to make a system that takes an item integer and returns a value which is which type the item is.
If the unit has 2 items with the same value it drops one. . .

Easy as can be with jass. . .
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Maybe this works:

Code:
(Item being manipulated) Equal to [B][U](Item carried by (Triggering unit) of type (Item-type of (Item being manipulated)))[/U][/B]

You can find the Underlined part on Item Carried by Hero of Type. I'm not sure if this works, though, as I did a system like this long ago.
 
Level 19
Joined
Nov 16, 2006
Messages
2,165
Dr super ur pretty lazy, I didn't expected that from u.
If its so easy in JASS -> U COULD TYP IT , FRIENDLY MAN!

Anyway I think this works:
  • Item Classes
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Hero manipulating item)) Equal to <Your Hero>
          • (Item-class of (Item being manipulated)) Equal to <Your Class>
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Yes like you posted in gui it can be done but it means making 100s of if then statements (especialy if your map has over 100 equipments) and thus in inefficent and eventualy can cause lag when an item is picked up.

What I was refering to was using a complex system ofjass linking to eithor global arrays or to game chache (depending on design) to allow easy adding of items to the system, complementing save / load and allowing for more advanced things.

Anyway Fl4meS your trigger is wrong since he wants an equipment system where you can carry only 1 armor (there can be 128 armor items but you can only carry one of thoes at any them) when you gave a trigger for allowing only certian heroes to carry certian items.

If I did it for him it would not help him since it is one thing to use a system but a different thing to know how the hell the system functions and anyway it would help improve his triggering skills if he even tried to make it himself.

As for the topic creator. . .
I recomend you look over some jass tutorials and practice GUI a bit more then write a plan on how your system functions. Once you have done that try thinking how will i do each part of the system then visulise the triggers you will use then finally try and create it and then debug it and finnaly you can be proud of your self that you could solve your own problem by your self.
 
Level 19
Joined
Nov 16, 2006
Messages
2,165
I'm not here to read your pathetic posts,
u are surely going off-topic.
For this part, I will also :
My triggering is fine, ever heard of understanding the question wrong?
At least I tryed to help him, and did not give him a burnout like u did.
But by answering with ur post, why just don't u give him the answer ? man ... Just help each other, thats why this forum is here...
If its english would be also a bit more specific, I could but since Rui posted that trigger I was thinking in that direction.
Sorry to the moderators, admins, poster to getting off topic here.
I will watch my words here,
~- Fl4meS
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
It took me about 1 month to learn jass and that was with about 1-2 hours every second day and I had no experience with programming languages before.
Once you know jass you hit your self on the head thinking why did I have trouble understanding it before.

I know some people learn jass not as quickly as others but even still an effort should be made to learn it.

Well anyway I could go about making an item system like he is after but I do not have the time and he would probably not know how he is meant to use it.
I try my best to help by giving structure hints and stuff but if I write a jass script that does it for them I am sure they will not know where to begin to use it even if I give alot of help.
 
Status
Not open for further replies.
Top