Scythe Posted January 7, 2011 Author Share Posted January 7, 2011 im trying to get it so where the wep you are useing and the npc must have a attribute value the same but it will not work and I do not know whyhere is what I havethere he is trying to remake EO's resource system..well I guess I am but he wants it```Dim Tool Tool = (Item(GetPlayerInvItemNum(Attacker, GetPlayerWeaponSlot(Attacker))).Tool) If NPC(NPCnum).Behavior = NPC_BEHAVIOR_RESOURCE Then If Tool = (NPC(NPCnum).Tool) Then CanAttackNpc = True End If If Tool <> (NPC(NPCnum).Tool) Then Call PlayerMsg(Attacker, "you must use the right tool for the right job", RED) Exit Function End If End IfEnd If``` Link to comment Share on other sites More sharing options...
Tdogthedog Posted January 7, 2011 Share Posted January 7, 2011 does it tell you where it errors? Link to comment Share on other sites More sharing options...
Scythe Posted January 7, 2011 Author Share Posted January 7, 2011 it just does not work i get no errors Link to comment Share on other sites More sharing options...
Robin Posted January 7, 2011 Share Posted January 7, 2011 @Scythe:> everywhere it says var there is an attribute but the guy im helping said not to post it :/You're not helping anyone by withholding information. We can't help you if you don't give us the entire code. Link to comment Share on other sites More sharing options...
Scythe Posted January 7, 2011 Author Share Posted January 7, 2011 went ahead and put it and it does save the tool value as far as i know. if i close everything and open it up the number has not changed so i assume it is saved right Link to comment Share on other sites More sharing options...
Robin Posted January 8, 2011 Share Posted January 8, 2011 I'm not even going to bother asking why he thinks that re-making the resource system with npcs is a good idea.Place breakpoints around the code and find out if the 'tool' value is being set properly. Link to comment Share on other sites More sharing options...
Scythe Posted January 8, 2011 Author Share Posted January 8, 2011 what did u use instead of npc's I figured it would be easier and work almost the same and take less time to augment an existing system than to make a new one Link to comment Share on other sites More sharing options...
Robin Posted January 8, 2011 Share Posted January 8, 2011 @Scythe:> what did u use instead of npc's I figured it would be easier and work almost the same and take less time to augment an existing system than to make a new oneThere's already a resource system in EO. Why would you need to make a new one? :| Link to comment Share on other sites More sharing options...
Scythe Posted January 8, 2011 Author Share Posted January 8, 2011 @Robin:> There's already a resource system in EO. Why would you need to make a new one? :|he wants to use ES :|and it turns out they do not save right but they still show up in the editor :/ off the top of your head can you think of what or where the problem might be if you had to guess… besides the engine and switch to EO :) >! OR ME!!! Link to comment Share on other sites More sharing options...
Robin Posted January 8, 2011 Share Posted January 8, 2011 @Scythe:> he wants to use ES :|Tell us what bloody version you're using next time. Origins is the de facto version. You need to point out when you're using outdated versions. You'll have to get someone else to help you. Link to comment Share on other sites More sharing options...
Scythe Posted January 8, 2011 Author Share Posted January 8, 2011 Why is EO like the default version? and outdated is a matter of opinion and i prefer some of the features of ES over EO it is easier to add the things EO has to ES than the other way around and this is the last one i have to do. but ill try to figure it out thanks for your time anyway :) Link to comment Share on other sites More sharing options...
Robin Posted January 8, 2011 Share Posted January 8, 2011 @Scythe:> Why is EO like the default version?Obviously.@Scythe:> and outdated is a matter of opinionNo it is not. Damian himself says we should purge the forums of everything related to EE and ES.@Scythe:> and I prefer some of the features of ES over EO it is easier to add the things EO has to ES than the other way around and this is the last one I have to do. but ill try to figure it out thanks for your time anyway :)Then you're a fool. It's impossible to re-program ES to match the stability and optimisation of EO. Link to comment Share on other sites More sharing options...
Scythe Posted January 8, 2011 Author Share Posted January 8, 2011 ouch i dont consider myself a fool im just lazy and i know EO is faster and less buggy and all that but i dont want to take the time to reprogram all to ES stuff i like i just dont have time between saving so i can take formal programming classes and my current school i cant spend that mush time when a older version has most of it already done 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