Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-21-2012, 09:33 PM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
Weapon Scrolling

The best way I can explain what I am trying to do, is compare it to a hat system (Where the hat appears above your head, and you scroll though, and if you don't have the hat, it goes onto the next one)

I'm trying to avoid making an inventory so I am making a weapon system where you can scroll though your different weapons.
Every weapon is assigned a number.
For example, Katana = weapon 1.
So when you get it, clientr.weapon1 = true; so the client knows the player has it.

So lets say you have weapon1, 2, 3, 6.
How would I go about making a system that scrolls through 1, 2, and 3, but because there is no 4 or 5, it skips right to 6?
Reply With Quote
 


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

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

Forum Jump


All times are GMT +2. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.