WiseRock Posted July 28, 2014 Author Share Posted July 28, 2014 Are there any tutorials on this or Can anyone guide me on How to do this.I wanted a Title System that can be Achieved through an Item.Regards, Render Link to comment Share on other sites More sharing options...
Slasheree Posted July 28, 2014 Share Posted July 28, 2014 I dunno about tutorials, but i'd probably go something like this:1- Create an array of strings to hold all the titles (client-side)2- Add '.hasTitle(1 to MAX_TITLES)' to the playerRec (client and server-side)3- Add ITEM_TYPE_TITLE (client and server, don't forget the item editor), and in the server's 'Sub UseItem()' add the check for that item type and call 'UnlockTitle( playerIndex, titlenum)', titlenum being a value retrieved from the item's data>! ```>! Sub UnlockTitle( byval index as long, byval titlenum as long ) if titlenum < 1 or titlenum > MAX_TITLES then exit sub if index < 1 or index > MAX_PLAYERS then exit sub>! Player(index).hasTitle(titlenum) = TrueEnd Sub>! ``` [EDIT]4- Add '.selectedTitle' to playerRec5- on 'Sub DrawPlayerName()' make it draw the player's .selectedTitle Link to comment Share on other sites More sharing options...
PVJsquad Posted July 29, 2014 Share Posted July 29, 2014 what the function of title system ? Link to comment Share on other sites More sharing options...
WiseRock Posted July 29, 2014 Author Share Posted July 29, 2014 DELETE POST Link to comment Share on other sites More sharing options...
WiseRock Posted August 3, 2014 Author Share Posted August 3, 2014 > ,…,<>" data-cid="926354" data-time="1406569107">> > I dunno about tutorials, but i'd probably go something like this:> > 1- Create an array of strings to hold all the titles (client-side)> > 2- Add '.hasTitle(1 to MAX_TITLES)' to the playerRec (client and server-side)> > 3- Add ITEM_TYPE_TITLE (client and server, don't forget the item editor), and in the server's 'Sub UseItem()' add the check for that item type and call 'UnlockTitle( playerIndex, titlenum)', titlenum being a value retrieved from the item's data> > > >! ```> >! Sub UnlockTitle( byval index as long, byval titlenum as long )> if titlenum < 1 or titlenum > MAX_TITLES then exit sub> if index < 1 or index > MAX_PLAYERS then exit sub> >! Player(index).hasTitle(titlenum) = True> End Sub> >! ``` > > [EDIT]> > 4- Add '.selectedTitle' to playerRec> > 5- on 'Sub DrawPlayerName()' make it draw the player's .selectedTitleThanks I'll try itAnyone know how to do a simple talent tree Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now