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

Would it be possible to…


Scware
 Share

Recommended Posts

Welcome to Eclipse, i hope you enjoy your stay,

Now to answer your question,

From my scripting knowledge this is not possible in scripting, however there are other ways you could do this, IE open up different shops for different classes using the Getplayerclass command.

i hope i was of some help to you
Link to comment
Share on other sites

Tipsta is absolutely right, and that's what I was going to recommend.

You would need to make 1 scripted tile per shop, and have each shop check the class with GetPlayerClass, then use the command GoShopping to open each shop; here is an example (as a scripted tile):

Case X
  If GetPlayerClass = 3 Then
      Call GoShopping(Index, 5)
  Else
      Call GoShopping(Index, 4)
  End If
Link to comment
Share on other sites

If you were to edit the source code where it says to take money when you buy something from a shop and  put something like this

if players class = the class that gets the discount
    player money = player money - (price - discount)
else
    this is where the normal money subtraction code will go
end if

I know that this is not proper code, it is just meant to point you in the right direction.
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...