Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Problem with stats


Doodman
 Share

Recommended Posts

k so ima complete noob at source thingies so in order to get better I tried to swap around what stats do

so I tried to make the Agility stat make your attack rate faster

so this is what i changed

```
If GetPlayerEquipment(attacker, Weapon) > 0 Then
            attackspeed = Item(GetPlayerEquipment(attacker, Weapon)).Speed - (GetPlayerStat(index, Agility))
        Else
            attackspeed = 1000 - GetPlayerStat(index, Agility)
```
so i go to compile it and itsays that the index is undefined or something like that

so now im looking for help
Thanks in advanced  ;D
Link to comment
Share on other sites

The index is the player. Player one would have the index of 001 and player 2 would have 002 and so on. So you need to define which index, in this case it is everyone. If you have a set number of indexes ( I am not sure this is going to work but it works on other mmo makers ) you can put in a variable representing the index or 1- how much indexes you have. PS: I dont know if you can insert codes and scripts into eclipse origins
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...