A common issue that often keeps me awake at night, is that the sinister REG stylist of Odin cheat me and my players on our REG coupons, and when they are supposed to be giving me a new hairdo, they sometimes charge me for their services without even touching my hair!
Now, I have thought about two ways of doing this, but can't seem to get either to work.
The first one is subtracting the player's current hairstyle from the array. I tried adding -(cm.getPlayer().getHair()); to the end of my array, but it returned an error. I'm not sure how i would add the check to the array, since it seems to be unable to read functions added to it.
The second one is adding the check to remove the players current hairstyle from cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]); [Math.floor....], although I'm not sure if this is a viable option...
Any help/hints are appreciated!
Regards, Cygnus




Reply With Quote


