• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by cwaite84 · Nov 22, 2013 at 01:33 AM · javascriptprogrammingleveling

Need help with a Borderlands style proficiency system.

Well for any of you that have played Borderlands, you will know tat there are two forms of leveling in it. One is the main level, and two is the weapon proficiency levels. I am trying to develop a similar system. Although I am unsure of how to go about it. I know what I need to do (one way of doing at at least). It is like this, I would like to make a script and attach it to each weapon and maybe give it boolean values like this :

 var isAssaultRifle : boolean = true;
 var isShotgun : boolean = false;
 var isPistol : boolean = false;
 var isSniperRifle : boolean = false;

So as you can see this particular weapon would be an assault rifle. So now I need to make sure the player knows its an assault rifle and ONLY returns the damage it deals to the assault rifle proficiency. For example, when I switch weapons I obviously don't want to be shooting with a pistol and having it return damage to the shotgun proficiency. So any ideas would be greatly helpful, and I appreciate it ahead of time. Thank you! :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Borderlands Style Proficiencies 0 Answers

What is a good unityscript writing program? 1 Answer

Need help with a proficiency system(experience system) 1 Answer

How to approach different game modes 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges