• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

new Shopping system

Status
Not open for further replies.
Level 17
Joined
Jan 21, 2010
Messages
2,111
hey guys!
i wanna ask a help, i making a RPG named Terrans!, in there we use new shop system that work like this:
1. a player select a unit, the unit is a shop.
2. then apply camera object to triggering player
3. and the another one to make this system looks great is, when the unit is in 500 range of the shop, then the shop cam is activated, else it will not work,
i can make the first one, but making the range, i cannot, so please help me
+rep to helpers
 
Level 4
Joined
Dec 7, 2010
Messages
62
This is what you need to do:

1: Create a new camera object (hotkey M).
2: Set the angle, distance and rotation to whatever you want to.
3: Make a new trigger with this event:
  • Shop System
    • Events
      • Unit - A unit comes within 500.00 of <Your shop>
4: To make sure it is a player-owned unit, use this condition:
  • Shop System
    • Conditions
      • ((Owner of (Triggering unit)) controller) Equal to User
5; Now, to apply the camera you have created, use this action:
  • Shop System
    • Actions
      • Camera - Apply (<Your camera object>) for (Owner of (Triggering unit)) over 0.00 seconds
6; Now, if you leave the shop, you will have to disable this camera for the triggering player. If you want to, I can create this for you aswell or do you know how it works?

Tip: Change the "over 0.00 seconds" to "over 1.30 seconds" or something if you want the camera to apply more smoothly.

-Devinity-
 

sPy

sPy

Level 22
Joined
Apr 10, 2009
Messages
380
You can also do this,
Make a region at the shop, and then do this:
  • Events
    • Unit - A unit enters Region
  • Conditions
  • Actions
    • Set MarketplaceTempPoint = Position of Marketplace 0050 <gen>
    • Camera - Pan camera to MarketplaceTempPoint for (Owner of (Triggering Unit)) over 0.10 seconds
    • Custom script: call RemoveLocation(udg_MarketplaceTempPoint)
 
Level 17
Joined
Jan 21, 2010
Messages
2,111
thanks, but after all i wanna make the cam is Focused onto the Shop, like the first person camera, and only if the buyer is clicking or selecting the shop and also the buyer is on 400 (or maybe more) range from the shop, not when a unit enter region
 
Status
Not open for further replies.
Top