Scware Posted July 16, 2009 Author Share Posted July 16, 2009 Have a character class that gets a discount from all the shops in the game?Sorry if my question is too noobish :P Link to comment Share on other sites More sharing options...
IceCream Tuesday Posted July 16, 2009 Share Posted July 16, 2009 uhm.. Not sure on the engine anymore.. but.. if your able to script shops.. then yeah.. but you'd probably have to script ALL of them.. or set up in the source. Link to comment Share on other sites More sharing options...
Guest Posted July 16, 2009 Share Posted July 16, 2009 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 More sharing options...
Scware Posted July 16, 2009 Author Share Posted July 16, 2009 Thanks alot, I'm new to Eclipse and I am not familiar with the limits of what you can do with the script. Link to comment Share on other sites More sharing options...
Guest Posted July 16, 2009 Share Posted July 16, 2009 Your welcome, shoot me a pm or get me on msn if ya need some help with it,[email protected] Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 16, 2009 Share Posted July 16, 2009 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 More sharing options...
Gillispie Posted July 17, 2009 Share Posted July 17, 2009 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 thisif players class = the class that gets the discount player money = player money - (price - discount)else this is where the normal money subtraction code will goend ifI 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 More sharing options...
Gillispie Posted July 17, 2009 Share Posted July 17, 2009 . Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now