wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Samples
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 06-09-2006, 06:02 PM   #1
weaaddar
User


Respected User
 
Join Date: Apr 2002
Posts: 2,372

Submissions (3)

weaaddar has a spectacular aura about (131)

Default Drag and Drop Systems with pocket shops!

EDIT: UPLOADED A FIXED VERSION THIS IS SAFE TO DL!

This is the latest and greatest in my new series of demo maps. Included is the pocket shop system a fully functional merchant that fits in the units inventory. Here is the readme for all the systems:
Code:
Included in this map is four of my systems. 
1) Atributer 1.1
2) Bag CE 2.1
3) Pitems 1.0
4) Stack Screen Alpha 1.6
5) PocketShop 1.0

All systems are fully multi-intancable, and all rely on RCCS v W, a system
consisting of basic functions, like simerror (by vexorian), and a slew of 
data structures, and my hero class. Also included is my config function,
which you must modify to the contraints of your map.

Included with each is a brief (possibly outdated) description of each, with
an up to date changelog of all the new functionality.
Here is a brief overview of each system:

Attributer is a system that allows you to manually choose what stats you get
each time you level. Its fairly simple, you enable it on a hero object, and
specify how many stats he gains per level. 

Bag CE is a system that is used for increasing the item storage capacity of
a unit. Heroes can pickup bags and drag items on to the bag to store them,
and double right click items in bags to remove them. You can set up Require-
ments for bags, so you can restrict a unit from putting "uber huge item" in
a tiny bag. You can set up multiple bag types, also you can set up bags to 
be pitems. 

Pitems is a system which allows you to pick up items when your inventory is
full, it relies on a dual node system of items called Puas and Pitems. A pua
is a powerup, that when pickedup runs through an exhaustive order of 
operations to see if you can aquire the pitem. You can sell pitems, give them
to other heroes, and even give them to non-heroes (and get an error message).
The most interesting feature though is to pick up an item when your in the
atr menu or something simmilar. Very cool.

Stack Screen is my mmo-style stacking system. You can pick up non-restricted
items and they will instantly stack. Pitems can also stack. Allowing you to
pick up more potions when your inventory is full. Stack screen also allows 
you to break a stack by double right clicking on an appropriate item when you
have a free space in your inventory. It ONLY allows you to break a stack when
you are in your main inventory.  

Pocket Shop is my portable merchant system. You can use it to buy and sell
items from your inventory pane. Selling items is just as easy as normal, 
insteading of dropping them on the physical shop, you drop them on the item
shop in your inventory. You can even set a custom return rate, as well as
the initial stock, max stock, and restock time of items sold in the shop.
The pocketshop also allows you to add requirements to summon the shop, and
to view its inventory.

Included in this map, is a test playground, only Sir Stackalot is a hero, the
firelord is not. (I just put one on the map because I never saw one before).
The flutes ARE NOT PITEMS. Only the potion, pocket shop and the bags are pitems. 

If you find an error please respond to the thread at wc3campaigns on the
systems or send me an email at weaaddar@gmail.com. Include in your report 
what you were doing that caused the error, and also what your current state
of Sir Stackalot was by pressing left, if the error involved him of course. 
Attached Images
File Type: jpg start.JPG (103.5 KB, 2238 views)
Attached Files
File Type: w3x DragAndDropSys.w3x (70.6 KB, 1129 views)

Last edited by weaaddar : 06-10-2006 at 03:20 AM.
weaaddar is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 06-09-2006, 09:41 PM   #2
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Aprooved.

All right, why is the Stack Screen still on alpha? seems pretty stable to me.

The pocket shop is awesome although it is kind of weird to have a shop in your hands and still pay for the things, the best thing is that you can get rid of all the problems and limitations you can find with real shops. In fact, I think I am shamelessly gonna clone it and add it to InvX because InvX seriously needs an alternative to shops due to all the problems caused by them. The only little problem is gonna be to require a new item to be able to sell items. ouch.


I figured out InvX sucks I will have to do some updates if only WE worked better on this machine.

Quote:
Sounds don't seem to play the first time when you create them in Jass.
This trigger just plays all two sounds I use with no volume.
This has been bugging me for a long time and wasn't sure if it I was being paranoid or if it was really a bug. Good to see that fix works.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 06-09-2006, 09:45 PM   #3
st33m
User
 
st33m's Avatar
 
Join Date: Feb 2006
Posts: 603

Submissions (1)

st33m is on a distinguished road (22)

Send a message via MSN to st33m
Default

Ooooo.

Cool.
st33m is offline   Reply With Quote
Old 06-10-2006, 12:43 AM   #4
weaaddar
User


Respected User
 
Join Date: Apr 2002
Posts: 2,372

Submissions (3)

weaaddar has a spectacular aura about (131)

Default

As far as planned features, I would like to add a confirmation menu that would show how much gold and lumber you'd get for selling items, Blade said he feels it'd be best only because an acident can be very costly. (i.e. the uber sword selling it for 20000 gold means nothing if you can never get another).

Imatation is a form of flatter. This is a system I've wanted to build but never really could figure out the mechanics of it. It reminds me of Darky's Alchemy spell which was brokenly powerful in my opinion, but incredibly useful. I like the notion of being able to buffs and healing in the heat of battle. Paying 25 more for a potion is well worth it if it saves me from a costly resurrection. I also like the currency exchange in the palm of your hands.
As far as another version of an item? To make an item which is physical (i.e. not powerup) requires 3 items to be sold in the pocket shop.

As far as why stack screen is alpha.. I'm still not a 100% satisfied with the system. (it works but it feels off) And I like sticking with names.

Why is DT4a A4 named Dialog Test Four Advanced alpha four? When it features no dialogs? Is over two years old and has gone through countless builds.

Edit: The item is magical. It summons the shop to your hand, you don't physically posess the items. Thats why they all say Purchase (or I have no better way of doing it other then spellbooks which are shit anyway).
edit2: A funny quirk if you look at the top right when zoomed in you'll see a sheep in out of bound land.

Last edited by weaaddar : 06-10-2006 at 03:22 AM.
weaaddar is offline   Reply With Quote
Old 06-11-2006, 01:55 AM   #5
operator
User
 
Join Date: Apr 2006
Posts: 172

Submissions (7)

operator will become famous soon enough (37)operator will become famous soon enough (37)

Send a message via MSN to operator
Default

You rock man :P:P
operator is offline   Reply With Quote
Old 07-11-2006, 12:03 AM   #6
xdI77IHdx
User
 
Join Date: Feb 2006
Posts: 17

Submissions (1)

xdI77IHdx has a little shameless behaviour in the past (-3)

Default

I put it in my map and it didn't work Im having trouble doing so...
xdI77IHdx is offline   Reply With Quote
Old 07-23-2006, 10:14 PM   #7
operator
User
 
Join Date: Apr 2006
Posts: 172

Submissions (7)

operator will become famous soon enough (37)operator will become famous soon enough (37)

Send a message via MSN to operator
Default

Is it possible to make:

You got a shop, you can add items, you cant buy from it, but others can
operator is offline   Reply With Quote
Old 07-25-2006, 10:10 PM   #8
weaaddar
User


Respected User
 
Join Date: Apr 2002
Posts: 2,372

Submissions (3)

weaaddar has a spectacular aura about (131)

Default

I'm not sure I understand.

You want to make the pocketshop a vendor? Where by you place Items in to the pocket shop, and then its populated to other players if they'd like to purchase it.

It's very possible, the problem comes with displaying the value you seek. Unless you want the pawn price of the item, there really is no way to get a price to be shown.
weaaddar is offline   Reply With Quote
Old 11-12-2006, 04:44 AM   #9
phuoclam24
User
 
Join Date: Nov 2006
Posts: 1

phuoclam24 has little to show at this moment (0)

Default this changes "hostile neutral" player??

Hi,
it seems that when using this system, the neutral hostile player no longer treats the human player as an enemy. any idea what's going on?? and how I would fix it?

edit: I've tried adding an action to explicitly do this on map initialization but it doesn't help either...
Player - Make Neutral Hostile treat Player 1 (Red) as an Enemy

Last edited by phuoclam24 : 11-12-2006 at 04:48 AM.
phuoclam24 is offline   Reply With Quote
Old 05-02-2007, 08:30 PM   #10
DeathRing
User
 
Join Date: May 2007
Posts: 37

DeathRing has little to show at this moment (0)

Default

I am having difficulty getting this to work ( Mind ya I'm a JASS nub ), I copied every ability, every trigger for the bag and stacking system, modified the config, but for some reason the system still doesnt work. Could it possibly be the fact that I'm using other JASS codes and vars?
DeathRing is offline   Reply With Quote
Old 05-03-2007, 02:45 AM   #11
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

define "doesn't work"
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 05-03-2007, 11:37 AM   #12
DeathRing
User
 
Join Date: May 2007
Posts: 37

DeathRing has little to show at this moment (0)

Default

well, when I try to save, it will say that the triggers have compiled 1200 errors, and this like with the stuff I havent messed with, only the config was the only trigger I modified, so it would have the right units and abilities set. O, and I also have that RCCS .v W thing on there too.
DeathRing is offline   Reply With Quote
Old 05-03-2007, 01:14 PM   #13
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Well it would help me help you if you tell me what the first error is and the lines nearby the "error line" You may also get NewGen Pack / WEHelper since they are better at giving Jass syntax errors.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 05-04-2007, 02:18 AM   #14
Ignitedstar
Moderator
 
Ignitedstar's Avatar


RP Section Moderator
 
Join Date: Jul 2005
Posts: 1,755

Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)Ignitedstar has a spectacular aura about (102)

Send a message via MSN to Ignitedstar Send a message via Yahoo to Ignitedstar
Default

I tried it, very neat.

Few questions:

1. I don't know if it's an error or a flaw or something, but when I put the Alleria's Flute of Accuracies in the bag then opened the bag, their effects were on? And I believe at the same time, the items in the hero's original inventory don't get counted as bonuses when the bag's inventory is shown?

2. I don't want all of the systems in my map. To be specific, what I really would like is the stacking system you made(gave me the most O_o). Do I need to import all of the systems in order to just use one? That sounds like a might waste of space. Maybe it was just me, but I don't think the documentation noted anything about the stacking system needing any other system within the testmap. Am I right or wrong?
__________________
Current Activity: It's a secret, now.
Evaluation: I actually logged in?!?!
"If I speak in the tongues of men and of angels, but have not love,
I am only a resounding gong or a clanging cymbal.
If I have the gift of prophecy and can fathom all mysteries and all knowledge,
and if I have a faith that can move mountains, but have not love, I am nothing."

1 Corinthians 13:1-2

Current Works:
None.

Last edited by Ignitedstar : 05-04-2007 at 02:22 AM.
Ignitedstar is offline   Reply With Quote
Old 05-08-2007, 01:20 AM   #15
DeathRing
User
 
Join Date: May 2007
Posts: 37

DeathRing has little to show at this moment (0)

Default

Vexorian, I downloaded your Jass New Gen Pack to see if it could help identify these errors clearly, but for some reason when I save the game under the New Gen World Editor, the jasshelper will say something like " Hold on, errors were found " and the loading bar will reach about 95% then it will freeze and I have ctrl+alt+delete. As for what the first error says, "Expect a name" and it has the "if(udg_obj==null)then" part highlighted in the "config" trigger. After that line, it shows an error called "Expected a variable name" on the line that says "set udg_obj=InitGameCache("obj.w3v")" Then there are about 1211 more errors, but naming them all would be a pain lol. (Unless you really need those 1211 O_o)
DeathRing is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 11:39 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services