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

How Do You Put Scripted Spells in EE 2.7


mclean28
 Share

Recommended Posts

Here is a simple berserk script I made.
```
If GetPlayerMP(index) >= 10 Then
Call SetPlayerStr(index, GetPlayerStr(index) + 20)
Call SetPlayerDef(index, GetPlayerDef(index) - 10)
Call SetPlayerMagi(index, GetPlayerMagi(index) - 10)
Call SetPlayerMP(index, GetPlayerMP(index) - 10)
Call SendStats(index)
Call SendMP(index)
End If
```

```
If GetPlayerMP(index) >= 10 Then

```Checks if the player has at least 10 MP

```
Call SetPlayerStr(index, GetPlayerStr(index) + 20)
```Gives the player 20 more strength points.

```
Call SetPlayerDef(index, GetPlayerDef(index) - 10)
Call SetPlayerMagi(index, GetPlayerMagi(index) - 10)
Call SetPlayerMP(index, GetPlayerMP(index) - 10)
```
Takes 10 stat points away from each of the stats.

```
Call SendStats(index)
```Sends the stats to the player.

```
Call SendMP(index)
```
Sends the new amount of MP to the player

```
End If
```End the If statement.
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...