Well, I am making a Bleach game and I want the squads for the shinigami to be seated in order of reiatsu. Reiatsu is just like the clients power. The first two seats are the Captain and lieutenant which I don't want included in the automatic seatings. From the 3rd seat to the 20th seat I want them to go in order 3rd seat having the most reiatsu (power), and 20th seat having the lowest. If all the seats are taken and a new shinigami (A race in Bleach) joins the squad, but doesn't even have enough reiatsu to take someone off the satings, he will be put as an unregistered seat in squad [enter number of the squad here]. There are 13 squads total.
Since people wont be on the game all of the time, I also want to know how would I get the amount of reiatsu the other client had before he logged off, and it auto moving him down a seat if newcomer to the squad had more reiatsu (power).
ID:272612
![]() Oct 21 2008, 7:48 pm (Edited on Oct 21 2008, 9:17 pm)
|
|
![]() Oct 21 2008, 8:51 pm
|
|
In order to help make this, we'll probably need to know what the hell a "reiatsu" is. Secondly, you'll need to describe this all better, as what you have is rather vague.
|
Alright, I started work on this yesterday and just finished it. It's rather large, so I'll seperate it into four parts:
//This creates a master /rank_handler object to handle /squad The /squad datum is used to handle the thirteen squads you mentioned, as well as the master squad (the name I gave to the group with the 18 members + captain + lieutenant). It has basic functionalit you should need, and the master squad is modified appropriately to work as a ranked list. squad /interim_alias This datum will be used to handle the storing of mob data. Due to the fact that you will likely delete mobs when the player logs out (as BYOND does by default), storing a direct reference to a mob won't work. This will be used in lieu of that. In addition to that, all interactions between a mob and a squad will be handled, at least by this code, by way of this datum. interim_alias /mob I made modifictiosn to /mob instead of /client so that multiple characters could be controlled by one player. mob |