Circa Posted February 4, 2013 Posted February 4, 2013 I'm wondering if it would be possible to select the lightsaber, either with a bound key or from scrolling through inventory, and not have it turn on, but just in the hand. This isn't really necessary but I might want to use it in something in the future, if it's possible. I'm sure it has to do with coding and crap, which I cannot do. Any ideas? Dusty likes this
mrwonko Posted February 4, 2013 Posted February 4, 2013 I believe it can be done with an ICARUS script like this one: set ( /*@[member='Seto']_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_SABER" ); set ( /*@[member='Seto']_TYPES*/ "SET_SABER1BLADEOFF", 0 ); set ( /*@[member='Seto']_TYPES*/ "SET_SABER1BLADEOFF", 1 ); set ( /*@[member='Seto']_TYPES*/ "SET_SABER2BLADEOFF", 0 ); set ( /*@[member='Seto']_TYPES*/ "SET_SABER2BLADEOFF", 1 );Which could be bound to a key using the runscript command.--edit--Sorry for the Ping, Seto, it's JKHub being stupid. That should be @<nothing>SET in the script. Dusty likes this
Circa Posted February 4, 2013 Author Posted February 4, 2013 I'm not familiar with Icarus or scripting in general. Could you explain a little further?
mrwonko Posted February 4, 2013 Posted February 4, 2013 Get the JKA SDKStart BehavEdConfigure BehavEd (Are there still any tutorials on this available somewhere? I've got an old German tutorial archived on my website, maybe the pictures will help)Recreate the above scriptSave it in gamedata/base/scriptsHit the compile buttonGo ingame, enable cheats, enter runscript <scriptnamehere>
therfiles Posted February 4, 2013 Posted February 4, 2013 7. Go ingame, enable cheats, enter runscript <scriptnamehere> Correct, but when you bind it, use "bind [key] runscript player [scriptname]". For some reason, when you bind runscript it requires the target to be specified. Also, in your script, why do you have the same block with conflicting values?
mrwonko Posted February 4, 2013 Posted February 4, 2013 Also, in your script, why do you have the same block with conflicting values?That's for turning off the n-th blade of a saber, so on a dual-bladed server it turns of both. (If you have some modded 5-blade-saber you're out of luck) therfiles likes this
Circa Posted February 5, 2013 Author Posted February 5, 2013 Correct, but when you bind it, use "bind [key] runscript player [scriptname]". For some reason, when you bind runscript it requires the target to be specified. Also, in your script, why do you have the same block with conflicting values? That's for turning off the n-th blade of a saber, so on a dual-bladed server it turns of both. (If you have some modded 5-blade-saber you're out of luck)I'm on Mac and I can't get BehavED to work on Crossover or Wine, and my VirtualBox does't start up anymore. Could someone, @@mrwonko, make this for me and send it to me? That would be much appreciated.
Solution therfiles Posted February 9, 2013 Solution Posted February 9, 2013 Anyone? Sorry! Here you go!
Circa Posted February 9, 2013 Author Posted February 9, 2013 Sorry! Here you go!Thank you! Works great, besides the fact that it literally gives me a saber, and says "Obtained Lightsaber" every time. Is this the only way to do this? It's fine if so.
Circa Posted April 7, 2013 Author Posted April 7, 2013 Hey @@therfiles can you possibly make one like this again but for having no weapon? The command in SP only works sometimes for some reason.
therfiles Posted April 8, 2013 Posted April 8, 2013 You mean forcing the player to have no weapon? You just need to type "weapon 0" in the console. Edit: Sorry if I misunderstood you...can you elaborate?
Circa Posted April 8, 2013 Author Posted April 8, 2013 You mean forcing the player to have no weapon? You just need to type "weapon 0" in the console. Edit: Sorry if I misunderstood you...can you elaborate? Yeah, but sometimes that doesn't work for some reason. I'm not sure why. I just wondered if there was a way to do it via script instead since the one you made for choosing the saber worked like a charm.
therfiles Posted April 8, 2013 Posted April 8, 2013 Oh, alright! Here you go! That should do it! Tell me if it works well for you!
Circa Posted April 8, 2013 Author Posted April 8, 2013 Oh, alright! Here you go! That should do it! Tell me if it works well for you!It didn't work! It just makes the current weapon equipped, re-equip itself. Weird. therfiles likes this
eezstreet Posted April 8, 2013 Posted April 8, 2013 note: you can compile ICARUS scripts using just IBIze, which should work fine under wine
Circa Posted April 8, 2013 Author Posted April 8, 2013 note: you can compile ICARUS scripts using just IBIze, which should work fine under wineI tried it the other day and it didn't work, or else I would try my hand at it. I guess I could try through VirtualBox or BootCamp.
therfiles Posted April 8, 2013 Posted April 8, 2013 It didn't work! It just makes the current weapon equipped, re-equip itself. Weird. Hmmm...That is weird. Lemme play with it...that shouldn't be happening at all. Circa likes this
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