Suppositoire Posted May 13, 2011 Author Share Posted May 13, 2011 Hi, I have 2 questions :1: where placed the script for attribut scripted?2: How to increase the speed of Npc ? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted May 13, 2011 Share Posted May 13, 2011 1\. There is no scripting in Origins.2\. Increase the number of times you loop through the NPC logic, making them "faster". Link to comment Share on other sites More sharing options...
Suppositoire Posted May 13, 2011 Author Share Posted May 13, 2011 1.[![](http://img35.imageshack.us/img35/3579/scrdh.png)](http://imageshack.us/photo/my-images/35/scrdh.png/)2\. thank you :) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted May 13, 2011 Share Posted May 13, 2011 Then you're probably using a custom modification. Origins has no "scripting" by default.Anyways, I'd assume that this scripting is actually just a layer for the actual source code. Go to the source and Control + F for "Scripted". Link to comment Share on other sites More sharing options...
Suppositoire Posted May 13, 2011 Author Share Posted May 13, 2011 I do not find the place :/ Otherwise how I can make to put a warning?Example: when somebody walk on a compartment a message appears: " you cannot continue any more here " Link to comment Share on other sites More sharing options...
Ruins of Hell Posted May 13, 2011 Share Posted May 13, 2011 [Make sure you've pressed the "Current Project" button.](http://php.webuda.com/eclipse/guide/ctrlf/slideshow.html)(And also, try checking both the server and the client.) Link to comment Share on other sites More sharing options...
Suppositoire Posted May 15, 2011 Author Share Posted May 15, 2011 Thank you I find in the server but I have a problem[![](http://s2.noelshack.com/uploads/images/2679246618543_bbuggi.png)](http://s2.noelshack.com/upload/2679246618543_bbuggi.png) Link to comment Share on other sites More sharing options...
Yxxe Posted May 15, 2011 Share Posted May 15, 2011 You're using that Select Case wrong. Before doing anything else, I would actually learn how to do things in VB6, such as Case statements, If statements etc. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted May 15, 2011 Share Posted May 15, 2011 ```Public Sub TileScript (index, script)Select Case Script Case 1 Call PlayerMsg(index, "blablabla", BLACK) Exit Sub ' ADD NEW CASES HERE: Case 2 Exit Sub ' Keep going on and on with cases, Case 1, Case 2, Case 3, Case 4, Case 5, and so on.. Case 3 Exit Sub Case Else Call PlayerMsg(index, "There is no script for this area.", RED) Exit SubEnd SelectEnd Sub```That's how your code SHOULD look. Keep all the Cases before Case Else, and keep incrementing the Case by 1 every time you want a new tile. Link to comment Share on other sites More sharing options...
Suppositoire Posted May 16, 2011 Author Share Posted May 16, 2011 Thank you very much that works! ^^ Link to comment Share on other sites More sharing options...
Suppositoire Posted May 19, 2011 Author Share Posted May 19, 2011 I am going to continue on subject;where is the problem?My purpose was: if the player walks on the compartment with the sprite 1 then he takes the sprite 89 and if the player walks on the compartment with the sprite 89 then he takes the sprite 1. Link to comment Share on other sites More sharing options...
Suppositoire Posted May 22, 2011 Author Share Posted May 22, 2011 ??? :/ 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