Blacksmithing mod WIP |
Sun, 17 November 2013 21:23 |
Keshire
Messages: 137 Registered: August 2013
|
Senior Member |
|
|
I was thinking of reworking some of the jobs so they are more than just for money. I'm staring with the Blacksmithing job.
Ideally I want to modify the multimesh weapons dynamically based on the blacksmithing minigame.
To start off with, each color should signify a weapon part: shaft, blade, etc
I'll add on mechanics after that prototype is complete.
jobblacksmithinstance.lua (Complete)
jobblacksmithmanager.lua (Complete)
I'm hoping I don't have to touch jobcommonscript.lua
[Updated on: Sun, 01 April 2018 22:02] Report message to a moderator
|
|
|
|
Re: Blacksmithing mod WIP |
Tue, 19 November 2013 16:56 |
Keshire
Messages: 137 Registered: August 2013
|
Senior Member |
|
|
I'm trying to find the mistake in that manager script. I must have misspelled something in there somewhere, because it's not making it through the script correctly. It's so close though. This would be a breeze if I could debug it properly...
Edit:
Got most of the typo's fixed I think. Game doesn't hang anymore. Goes on to next round.
Doesn't look like the multiplier is being updated and successful hit isn't animating.
Miss hit and idles are working.
Edit:
Rearranged some code to make better sense. Added my usual code commenting expressing my thoughts.
I'm at a loss on why the success hit and money aren't working. If someone wants to go through it and take a quick look I'd appreciate it.
[Updated on: Tue, 19 November 2013 21:28] Report message to a moderator
|
|
|
Re: Blacksmithing mod WIP |
Fri, 07 March 2014 08:18 |
Keshire
Messages: 137 Registered: August 2013
|
Senior Member |
|
|
I haven't had time to continue this, and the script is still kind of wonky.
But if anyone else wants to experiment with the concept. Here is what I had in mind:
in the HeroJobController:RespondToHitBlacksmith() function, you'd get the button that was pressed, and use that to modify the active weapon morph on every hit. I think the easiest way is to just iterate through the morphs for each weapon part since I believe they are an array.
If you don't care about money or round failure stuff, that can probably be completely removed.
[Updated on: Fri, 07 March 2014 08:34] Report message to a moderator
|
|
|
Re: Blacksmithing mod WIP |
Fri, 07 March 2014 10:02 |
asmcint
Messages: 48 Registered: September 2013 Location: U.S.A.
|
Member |
|
|
Keshire wrote on Fri, 07 March 2014 09:18
If you don't care about money or round failure stuff, that can probably be completely removed.
Your current version does that partway, by accident. For a perfect round, you don't get paid, and the gold multiplier never increases. I'd try to get the weapon morph bit working myself, but I've only ever been good at copying and pasting code together in a horrendous abomination against all things sensible and holy.
To whomever designed the map of Mistpeak Valley to look so much more simple than the actual level is: May the Archangel Michael descend from the heavens and plant his boot squarely between your legs for your asshattery.
|
|
|
|
Re: Blacksmithing mod WIP |
Fri, 07 March 2014 18:50 |
asmcint
Messages: 48 Registered: September 2013 Location: U.S.A.
|
Member |
|
|
Huh. Guess I'll have to try that in 2, now that I think about it, years when I'm actually old enough to drink. Who knows, maybe XKCD was right, and the Ballmer Peak exists.
To whomever designed the map of Mistpeak Valley to look so much more simple than the actual level is: May the Archangel Michael descend from the heavens and plant his boot squarely between your legs for your asshattery.
[Updated on: Fri, 07 March 2014 19:14] Report message to a moderator
|
|
|
Re: Blacksmithing mod WIP |
Sun, 01 April 2018 22:07 |
Keshire
Messages: 137 Registered: August 2013
|
Senior Member |
|
|
Keshire wrote on Tue, 19 November 2013 16:56I'm trying to find the mistake in that manager script. I must have misspelled something in there somewhere, because it's not making it through the script correctly. It's so close though. This would be a breeze if I could debug it properly...
I'm at a loss on why the success hit and money aren't working. If someone wants to go through it and take a quick look I'd appreciate it.
It's a little late, but at least not never.
I fixed it. It was one subtle greater than/less than sign that was flipped causing it to never make it out of the idle animation. The completed scripts are in the first post.
I'm also working on the lute hero manager with the intent of adding all the online achievements to it.
Haven't decided if I'll do anything to the pie making job.
[Updated on: Sun, 01 April 2018 22:07] Report message to a moderator
|
|
|