[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Map Development


Map Development Discuss your developing maps. Release beta tests and get useful feedback before the final release. If your map is fully complete or is a late Beta, then it can be uploaded directly to our Maps Section. Otherwise, attach the map to your post. This is NOT a forum to ask questions about the Editor!

Closed Thread
 
Thread Tools
Old 06-02-2006, 10:32 AM   #1 (permalink)
Registered User corley
User
 
corley's Avatar
 
Join Date: Apr 2006
Posts: 525
corley has little to show at this moment (25)corley has little to show at this moment (25)corley has little to show at this moment (25)
item stacking help

i need help with some basic item stacking (potions mainly)
i have read some tutorials but i cant seem to find half of the triggers/variables needed, so im wondering if anyone could help out by me giving them the map and they uplaod the trigger i dont know, or if there is another way or if someone has some ready made stacking triggers this would be great, thx for anyt help.
corley is offline  
Old 06-02-2006, 07:00 PM   #2 (permalink)
Registered User Eziekiel_Rage
User
 
Join Date: Mar 2005
Posts: 121
Eziekiel_Rage is an unknown quantity at this point (0)
getting other people to do it will not help you learn. however further down the list of rdz item stacking of doom tutorial ther a really simple tutorial

Quote:
Penknight wrote:


This items stacking method is a little confusing and uses some variables. I have a suggestion

1. Have the hero pick up the item
2. Check if hero has any of the same kind
3. Stack

Here is my code (universal item stacker)
For condition add the items that are stackable.

Item Stacking

Event A unit aciqure an item
condition Stackable items (like potion)

Action

For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions

For each (Integer B) from 1 to 6, do (Actions)
Loop - Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions

(Integer A) Not equal to (Integer B)

(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot (Integer B)))

Then - Action

Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A)) to ((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))) + (Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer B))))

Item - Remove (Item carried by (Hero manipulating item) in slot (Integer B))

Else - Actions
Do nothing

If you don't understand PM me (unQuote)

quote was taken from penknight in rdz stacking system of doom post

plus you can pm if you dont understand, which is nice :) hope that helps
Eziekiel_Rage is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Trigger] Item Stacking Tide-Arc Ephemera Triggers & Scripts 5 06-18-2007 12:11 PM
Item Stacking Gost World Editor Help Zone 4 04-03-2007 02:42 AM
item stacking corley Map Development 3 04-03-2006 09:47 AM
item stacking Covenant-Assassin Map Development 0 06-19-2005 12:36 AM
Item Stacking shiggityshwa Map Development 5 07-30-2004 08:39 PM

All times are GMT. The time now is 05:12 AM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle