Schwa
09-03-2007, 08:54 PM
Hi guys! This is my first post at AGN. (I hail from PureZC.) You guys seem to have a slightly more formidable force of scripters here than at PureZC (no offense to my homies ;) )... ShadowMancer, I envy you and your skill. :O Ahem... Anyway, I'll just copy-paste my post from PureZC to save time, if that's alright with you guys.
Okay, first things first: I'm still working on Molka Elite, though what I'm trying to accomplish isn't for that project. Basically I've been monkeying around with 2.5b trying to teach myself ZScript... Not going so well.
I want to make it so when you use the Potion item, you're able to shoot sword beams for 48 slashes. (By default, none of the swords can shoot beams.) I tried to accomplish this by writing a script that gives Link a Level 2 Peril Beam Scroll when he uses the Potion, and the Scroll is set to 32 Hearts Max (meaning literally always active). The scroll also sets a global variable called "BeamUse" to 48. Then I tried assigning a script to each sword that, if "BeamUse" is higher than 0, lowers that variable by 1 each time the sword is used, and if it's equal to 0, it removes the Level 2 Scroll from Link's inventory.
Complete and utter failure. The Scroll doesn't even show up in Link's inventory when he drinks the Potion. :(
I know some of you are decent scripters-- I've seen some of Matthew's work at AGN, which is actually what inspired me to learn it myself. But it's not working out. Could anyone compose this script for me so I can see where I messed up?
Again, this has nothing to do with Molka Elite... More than anything I just want to see if it's possible, but I might use this in a future project or something. I'm not sure at this point.
Any assistance would be highly appreciated. Thanks guys. --Schwa
That pretty much sums it up. Think any of you could assist me? Thanks in advance. :)
Okay, first things first: I'm still working on Molka Elite, though what I'm trying to accomplish isn't for that project. Basically I've been monkeying around with 2.5b trying to teach myself ZScript... Not going so well.
I want to make it so when you use the Potion item, you're able to shoot sword beams for 48 slashes. (By default, none of the swords can shoot beams.) I tried to accomplish this by writing a script that gives Link a Level 2 Peril Beam Scroll when he uses the Potion, and the Scroll is set to 32 Hearts Max (meaning literally always active). The scroll also sets a global variable called "BeamUse" to 48. Then I tried assigning a script to each sword that, if "BeamUse" is higher than 0, lowers that variable by 1 each time the sword is used, and if it's equal to 0, it removes the Level 2 Scroll from Link's inventory.
Complete and utter failure. The Scroll doesn't even show up in Link's inventory when he drinks the Potion. :(
I know some of you are decent scripters-- I've seen some of Matthew's work at AGN, which is actually what inspired me to learn it myself. But it's not working out. Could anyone compose this script for me so I can see where I messed up?
Again, this has nothing to do with Molka Elite... More than anything I just want to see if it's possible, but I might use this in a future project or something. I'm not sure at this point.
Any assistance would be highly appreciated. Thanks guys. --Schwa
That pretty much sums it up. Think any of you could assist me? Thanks in advance. :)