Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Item of Only One Type
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Xeridanus" data-source="post: 116593" data-attributes="member: 5963"><p>[code]Campaign Items</p><p>????Events</p><p>????????Unit - A unit Acquires an item</p><p>????Conditions</p><p>????????(Item-class of [b](Picked item)[/b]) Equal to Campaign</p><p>????Actions</p><p>????????For each (Integer A) from 1 to 6, do (Actions)</p><p>????????????Loop - Actions</p><p>????????????????If (All Conditions are True) then do (Then Actions) else do (Else Actions)</p><p>????????????????????If - Conditions</p><p>????????????????????????(Item-class of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Campaign [u]and (Item carried by (Triggering Unit) in slot (Integer A)) not equal to (Item being manipulated)[/u]</p><p>????????????????????Then - Actions</p><p>????????????????????????Hero - Drop [b](Matching item)[/b] from (Triggering unit)</p><p>????????????????????Else - Actions</p><p>????????????????????????Hero - Give [b](Matching item)[/b] to (Triggering unit)[/code]</p><p>The bits in bold are wrong, but I can't find my warcraft III cd in my pile of junk I call a desk so I can't get the right one for you. If memory serves me well (and it hasn't very often) then it should be (Item being manipulated). One more thing, your conditions as they are will drop the item being pickd up even when there is no other item being carried. I have also fixed this in your code.</p><p></p><p>EDIT: hmmm, the tags don't work inside the code tag.</p></blockquote><p></p>
[QUOTE="Xeridanus, post: 116593, member: 5963"] [code]Campaign Items ????Events ????????Unit - A unit Acquires an item ????Conditions ????????(Item-class of [b](Picked item)[/b]) Equal to Campaign ????Actions ????????For each (Integer A) from 1 to 6, do (Actions) ????????????Loop - Actions ????????????????If (All Conditions are True) then do (Then Actions) else do (Else Actions) ????????????????????If - Conditions ????????????????????????(Item-class of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Campaign [u]and (Item carried by (Triggering Unit) in slot (Integer A)) not equal to (Item being manipulated)[/u] ????????????????????Then - Actions ????????????????????????Hero - Drop [b](Matching item)[/b] from (Triggering unit) ????????????????????Else - Actions ????????????????????????Hero - Give [b](Matching item)[/b] to (Triggering unit)[/code] The bits in bold are wrong, but I can't find my warcraft III cd in my pile of junk I call a desk so I can't get the right one for you. If memory serves me well (and it hasn't very often) then it should be (Item being manipulated). One more thing, your conditions as they are will drop the item being pickd up even when there is no other item being carried. I have also fixed this in your code. EDIT: hmmm, the tags don't work inside the code tag. [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Item of Only One Type
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top