[solved] MP recharge script-Help needed - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11) +---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=14) +---- Thread: [solved] MP recharge script-Help needed (/showthread.php?tid=2142) Pages:
1
2
|
[solved] MP recharge script-Help needed - Alonless - 02-18-2009 so... well... Hi! im kinda new to this forum and i have some basic knowledge of scripting like : -I made more "balls" to Firzen's volcano -I made again more thingies like "balls" and etc to Firzen's Disaster -I made Firzen's Beam ( Ball ) follow enemies (yes yes i like editing Firzen) -I made Move for Firzen so he can make up to 5 clones (lol first i made 100 clones and lf2 crashed xD ) -I know how to decrease mp consumption and so on..( im just making this char to practice my scripting knowledge and stuff ) but still theres one thing that i cannot accomplish on my own... mp recharge script... (yea just like zxcv11791's from Ntsd Project) i couldnt find it so i made myself ..well i edited standing script (you know what im talking about) and added mp consumption -50 ( so mp will recover ) and tried to make it continous until i hit D,J or A and nutin ! heres the script i know he sucks but thats the thing i did from zero so dun laugh Here it goes Code: <frame> 303 charge in frame 306 i made next 303 so it will be continous . I know i made it wrong ,but i dun know what (Lol)... can som1 help me? (Yea I know u can =3) Btw It Only recharges 50Mp once and end, then i have to input the combination again (its DJA btw) . nutin more :confused: RE: MP recharge script-Help needed - TheNave - 02-18-2009 first: do never use state: 0 in any attack, if you do that then your character is going to start walking, punching, jumping, etc. if you press the keys, just like he would stand normally... do always use state 3 or 15, but in this special case you have to use 17, you'll know why when you ended reading my post second: why does frame 305 has a next: 1... I thought the move should loop until you press any key third: instead of using a next: 1 or hit_a: 1, etc. you can also use 999 instead of 1... 999 makes the character go to frame 0 fourth: the negative mp tag works only in the first frame of a move... if you use it in a frame which is not the first then it will decrase your mp instead(take a look at firens fire run) now I'm going to explain you how this actually works mp recovery isn't as easy as it looks like, since you can't do it with an mp-tag function the thing is you have to summon a beer bottle, set the wpoints(I hope you know what that is used for) somewhere so that the beerbottle is out of the screen(or you add some special frames to the beerbottle on which it is invisible)... then you have to use state: 17, because state: 17 is the drinking state, and as long as you drink a beer bottle your mps are going to recover(you can do the same with milk so that your hps are healed, too)... that's the basic, just use other sprites to make it look like charging and not drinking... then you have to loop 1 or 2 frames, doesn't matter how many, but all of them should have state: 17... hit_a/d/j should leed to another frame on which the character stops "drinking" and let the bottle disapear due to a special weaponact at your wpoint(make a special frame in the bottle with the disapearing state, it was state: 9997 or 9998, dunno exactly)... then just end the move with next: 999... that's all, if you didn't understand something because of my kinda low english skills then ask again and I try to explain it better... PS: I'm also a coder of NTSD PPS: peh... longest post in a forum, eva^^ - Neva!!! ~Ramond the sandbag RE: MP recharge script-Help needed - Alonless - 02-18-2009 Thx Nave i remember you =3 and i think i get it now =) and yea i didnt realized that i made so huge mistake at frame 305 wait 306 and next 1 xD *Thanked To Nave* And i think its solved now Btw Keep Up the Great Work With Ntsd ima going to try it now See Ya =D **********EDIT************ Well Its isnt so easy as i thought well heres my question How to summon The beer bottle in the script is it something with oid? RE: MP recharge script-Help needed - Silverthorn - 02-18-2009 oid/kind:2 one of the shortest posts RE: MP recharge script-Help needed - Alonless - 02-19-2009 Sry couldn't answer faster i had to go to sleep...dam GTM+1 k i think i got it heres the script: <frame> 303 charge pic: 78 state: 12 wait: 1 next: 304 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 999 hit_d: 999 hit_j: 999 opoint: kind: 2 x: 38 y: 3 action: 70 dvx: 100000 dvy: 0 oid: 123 facing: 0 opoint_end: wpoint: kind: 1 x: 44 y: 50 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> <frame> 304 charge pic: 0 state: 17 wait: 1 next: 305 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 999 hit_d: 999 hit_j: 999 bpoint: x: 40 y: 34 bpoint_end: wpoint: kind: 1 x: 17 y: 57 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> <frame> 305 charge pic: 1 state: 17 wait: 1 next: 303 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 999 hit_d: 999 hit_j: 999 bpoint: x: 40 y: 34 bpoint_end: wpoint: kind: 1 x: 17 y: 56 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> the only thing left is to copy the beer (weapon8) and make it so it wont have any falling sound - can hear it clearly in small stages (you know that clang clang thingie xD -im from Poland ) am I right? and BTW: i need to do sumthin with the beer script to recharge mp faster? ___________EDIT______________ K i was wrong first i need to call the beer to hand I thought that it worked but I was wrong could u tell me how to call it to hand?( dont ask how i mistaken ...just my bad ) ( and dun kill me....yet...) RE: MP recharge script-Help needed - Alonless - 02-19-2009 nut working-calling one beer near legs and nothing more heres the script again...theres still something missing...maybe there should be kind:2 for all frames? Script: <frame> 302 charge pic: 1 state: 17 wait: 1 next: 303 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 999 hit_d: 999 hit_j: 999 bpoint: x: 40 y: 34 bpoint_end: wpoint: kind: 1 x: 17 y: 56 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> <frame> 303 charge pic: 78 state: 12 wait: 1 next: 304 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 999 hit_d: 999 hit_j: 999 opoint: kind: 2 x: 38 y: 3 action: 70 dvx: 100000 dvy: 0 oid: 123 facing: 0 opoint_end: wpoint: kind: 1 x: 44 y: 50 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> <frame> 304 charge pic: 0 state: 17 wait: 1 next: 305 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 999 hit_d: 999 hit_j: 999 bpoint: x: 40 y: 34 bpoint_end: wpoint: kind: 1 x: 17 y: 57 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> <frame> 305 charge pic: 1 state: 17 wait: 1 next: 304 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 999 hit_d: 999 hit_j: 999 bpoint: x: 40 y: 34 bpoint_end: wpoint: kind: 1 x: 17 y: 56 weaponact: 23 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> waddya think? RE: MP recharge script-Help needed - Alblaka - 02-19-2009 opoint: kind: 2 x: 38 y: 3 action: 70 dvx: 100000 dvy: 0 oid: 123 facing: 0 opoint_end: You make the bear bottle flying with light speed out of the screen ^^ (edit: not out of the screen, "out of the game field" would fit better) The Y-value has to be 100000 not the dv-values.... AND you could use a Code: Code Tag RE: MP recharge script-Help needed - Alonless - 02-19-2009 yea but what with mp recovery its still isnt recovering RE: MP recharge script-Help needed - Alblaka - 02-19-2009 Dunno, i hadn't used the beer bottle thingy before... *checking all useful dat-files* No clue, wha... Hehehe, found your error: opoint: kind: 2 x: 38 y: 3 action: 70 dvx: 100000 dvy: 0 oid: 123 facing: 0 opoint_end: In frame 70 bottles have no body, therefore cannot be grapped or drunken. So you spawn battles, that "lie on ground" in the air and move with light speed XD You should try to put all "weaponacts" and the "action" to 31, that frame is used in all character drinking frames. If that still not works, you could try setting hit_a and hit_j to 0, maybe that causes something... And for the case you hadn't altered something up to now: If your bottle moves with dvx 100000 it will leave the level within 1 frame and disappear automatically ^^ RE: MP recharge script-Help needed - Alonless - 02-19-2009 k mp regeneration working but now how to get rid of beer in hand Code: <frame> 302 charge and btw how to use this code thingy? (yea yea u can laugh now xD ) Fixed for you. And that's how to use it: [code] asdf [ /code] - Noir |