Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do I make different types of players?

Asked by 9 years ago

I already have two teams, and team specific weapons, but I wanna add sub categories and sub weapons into the teams. So far, the Undead get daggers, while the Kingdom get swords and a crossbow, but I want to have different types of undead. Like, undead ghosts will get a speed boost item, and undead mage will get a summoning staff. How would I script this?

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

Well, how are you going to determine what kind of 'undead' are they? You could either put an IntValue in their Player, or Character, with the value that has the type of 'undead' they are. Then, in your game script, have it use the generic for loop to go through all of the Player's characters, and grab the value of 'Undead'. From that value, have it distribute weapons. Since you didn't provide proof that you've tried this on your own, that's the best answer I can give you. Hope I helped!

0
I was able to add the values, working on the weapon distribution right now. Thanks! doggybite1 100 — 9y
Ad

Answer this question