Jacquelinett Posted July 18, 2012 Author Share Posted July 18, 2012 So, Im trying to create a character creation system for all the newbie that wanted that system ;P Well, im a newbie too, but still ;PWell, I understand the basic concept of how to make a character system, but im facing a problem.I dont know how exactly should i tackle the bank systemSo far, as you can see in EO, in ModType, bank are declare as Bank(1 to MAX_PLAYER) as BankRecWhat im trying to ask is, how do i change it so that it work with 3 character from the player? This is how I set up character:```Public Type CharacterRec ' General Name As String * ACCOUNT_LENGTH Sex As Byte Class As Long Sprite As Long Level As Byte exp As Long Access As Byte PK As Byte Title As String ' Vitals Vital(1 To Vitals.Vital_Count - 1) As Long ' Stats Stat(1 To Stats.Stat_Count - 1) As Byte POINTS As Long ' Worn equipment Equipment(1 To Equipment.Equipment_Count - 1) As Long ' Inventory Inv(1 To MAX_INV) As PlayerInvRec Spell(1 To MAX_PLAYER_SPELLS) As Long ' Hotbar Hotbar(1 To MAX_HOTBAR) As HotbarRec ' Position Map As Long x As Byte y As Byte Dir As ByteEnd Type```Then PlayerRec:```Private Type PlayerRec ' Account Login As String * ACCOUNT_LENGTH Password As String * NAME_LENGTH Character(1 To MAX_CHARACTER) As CharacterRecEnd Type```So an example code would be:Function GetPlayerEXP(Byval Index as Long, CharacterSlot as Long) as LongGetPlayerEXP = Player(Index).Character(CharacterSlot).EXPEnd FunctionBut I dont know how do I make the bank work since it doesnt work in the same way as the Player(index) thing. Link to comment Share on other sites More sharing options...
jcsnider Posted July 18, 2012 Share Posted July 18, 2012 You make a character bank rec….Bank Rec (1 to max_players) CharBankRec(1 to 3) Then the original bank rec. 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