Level of Ability X

Jazradel

Helping people do more by doing less.
Reaction score
102
Can you save the level of each spell a hero has without knowing what spell it is?

For instance, I have a large RPG with 40+ heros. Instead of having if/thens to compare what hero you have and then what abilities he has and the levels, can you get the level of an ability in a slot(X = 0, Y = 2).
 

Jazradel

Helping people do more by doing less.
Reaction score
102
No I didn't think so either.

I thought of assigning a array with 4 slots for each hero to each ability as it was learned.

Any other ideas?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Catching the "learn" might do it.
Although you're going to need some interesting index handling...

May I ask what you're trying to do with that?
 

Jazradel

Helping people do more by doing less.
Reaction score
102
Yeh well I was looking for a challenge.

And this was going to be for save/load code. I just realised loading the abilities would be pretty tricky. If I was using the learn method I would have to have multiple If/Then's.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top