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

Adding scripted characters and spells


spectrelead
 Share

Recommended Posts

ok I have been trying to add scipted characters and spells to my game, but I don't know how.  I tell it to script it and I got a number line like 0-1000.  I know text should be there like items, but I don't fully understand since I am new to scripting.  I have been trying to add the Statspy spell which I have been having trouble with.

This is what I got, not mine

> If Int(GetPlayerTarget(Index)) < 0 Then
>     Call PlayerMsg(index, "You do not have anyone targeted", 15)
>     exit sub
>   else
>     Call PlayerMsg(index, "Target's Stats:", 12)
>     Call PlayerMsg(index, "HP: " & GetPlayerHP(player) & "/" & GetPlayerMaxHP(player), 15)
>     Call PlayerMsg(index, "MP: " & GetPlayermp(player) & "/" & GetPlayermaxmp(player), 15)
>     Call PlayerMsg(index, "Strength: " & GetPlayerSTR(player), 15)
>     Call PlayerMsg(index, "Defence: " & GetPlayerdef(player), 15)
>     Call PlayerMsg(index, "Magic: " & GetPlayermagi(player), 15)
>     Call PlayerMsg(index, "Speed: " & GetPlayerspd(player), 15)
>   end if

and where do I put this?

> Call StatSpy(index)

Can someone please help I don't understand
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...