• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

X-OMG-X's Item Purchase

  • Like
Reactions: supertoinkz
X-OMG-X's Item Purchase

This system is fully made by X-OMG-X and all credits goes to him.
The system may not be uploaded and/or distributed to any sites and credits shall be given when used.
The systemtriggers will not be added to the description, because it contains too many triggers and im a little lazy :p


--DESCRIPTION--

This system is made for my project, Dalanar RPG.
I wanted a smart , smooth and easy-to-use item purchasing for the map.
The way its made is to work properly into my RPG but it might also be useful in other maps.
My system is fully GUI and no programs is needed for importing.

When a hero with inventory comes near the seller, a box with all avaible items comes up.
You use UP+DOWN+LEFT and ESC to control it.
UP+DOWN scrolls up/down on the list of items and ESC purchases the currently selected item.
When you have purchased the wanted items, just press the LEFT key and the box will disappear.

NOTE: When using it in your map, be sure that the selling unit is invulnerable

There shouldnt be any leaks and it should be fully MUI/MPI too.
If you have any advices to improve the system or found a bug, please contact X-OMG-X on hiveworkshop.com

Give credits and enjoy!

~ x-omg-x

Keywords:
item, purchase, buy, hero, inventory, multi, board, multiboard, money, gold, sell, seller, x-omg-x, system
Contents

Purchase System (Map)

Reviews
17:00, 27th Nov 2009 TriggerHappy: Pretty cool system, could be useful.

Moderator

M

Moderator

17:00, 27th Nov 2009
TriggerHappy:

Pretty cool system, could be useful.
 
Level 15
Joined
Sep 3, 2009
Messages
1,521
ok tested it. i found a bug in the system if the seller dies you can still buy from him but you cannot exit from buying screen and stay frozen. could just fix that by making seller invunerable. and add a quick note to users about that.
it also leaks you create dummies but you do not destroy the position in the inrange trigger.
thats all i could find GJ. 4.5/5 till you fix.
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
this got heavy unit leaks as the unit variable overwrites itself if multiple heroes nears the seller at once and the dummies wont be removed

this isn't MUI nor MPI cause the event is only for player red, just add all other players too into the event and make the actions check which player owns the hero

this system is very bad cause it only supports one player, leaks units if multiple heroes arrives at the same time and what a fuck will happen if that happens? the buyer variable will also overwrite itself and every hero that arrives will be paused for infinitive ...

oh wait edit the trigger turns of itself so it will only work for one unit at the time instead of pausing all heroes!

1/5 and vote for disapproval
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
still only one player, the system exit trigger only is for player red, if you want this MPI, you need to array the hero variable, the selected variable, posiition variable and use the player number in every single trigger so it can be MPI, also to fix the dummies you can add them to a unit group with array that got the player number and that problem will be fixed
 
Top