HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Team Upgrades Shop?

07-08-2006, 07:44 AM#1
yuripro84
Hey, how do i make it so that everyone on the same team can use a shop to buy upgrades for thier units? Like, in my AOS, i want people to be able to buy unit upgrades and such. The upgrades are for computer player red (team 1) and computer player green (team 2). Would I just make normal unit upgrades available in computer owned buildings, then give them the shop ability? If this even works though, is there any way to disable use of this shop by the enemy? Even though I doubt the enemy would purchase upgrades for the other team, you never know. They could've bought it, then thought "Wait a min, that was for the other team! We don't have that many upgrades yet!" Then, they get mad at me and ask me to fix it. This is very unlikely, but hey, you never know!
07-08-2006, 07:47 AM#2
Oliver
u could make a dummy whihc could be broght from the shop, then when the dummy enters the map remove it form the shop n instantly reseacrh with triggers... i could be done simpleer but a lil bit of gui is simple enuf 4 me 1 :)
07-08-2006, 07:59 AM#3
yuripro84
I don't understand what you mean by this? Maybe it is just because I am tired, but that made absolutely no sense to me lol.
07-08-2006, 08:30 AM#4
Jacek
Dummy items... give items to shop like Research Attack 1 and Research Defense 1 and just trigger it:

event
player gets an item
conditions
item bought = Research attack 1
actions
set level of attack upgrade for player 12 to 1
remove research attack 1 from shop
add research attack 2 to shop

etc.
07-08-2006, 08:32 AM#5
Fulla
Yup thats the best way.

Id recommend making an invisible dummy unit permenantly next to it, so you can buy/research upgrades whilst fighting else where.

good luck on AoS
07-08-2006, 06:55 PM#6
yuripro84
But how do i make Only the dummy recieve the items? I just couldn't figure this out. Is there a way to say like, every .5 secs, cast Select Hero on (Hidden Unit)? Thanks guys, I've always had a problem with this one!
07-08-2006, 09:18 PM#7
Jacek
It doesn't matter, you remove item anyways
07-08-2006, 11:00 PM#8
Fulla
Yup, use the triggers he mentioned.

Just remember if its a team upgrade shop.
I assume the'll be a computer per player team?

So set the upgrades for the computer when any player buys the item.
07-08-2006, 11:11 PM#9
yuripro84
Well, i was wondering, what if their inventory is full? But them i remembered i could use tomes :D I'll try this out, thanks guys!

I'll just set one tome in the shop for something such as Level 1 Attack, then add Level 2 Attack when used :D