#hey yall! I have a simple question, how would you go around making a counter ability?

30 messages · Page 1 of 1 (latest)

tacit pasture
#

Not much more to say honestly

#

hey yall! I have a simple question, how would you go around making a counter ability?

#

also if anyone answers this please ping me so I notice the answer

tacit pasture
#

um, I already know this, what I meant is like, how? the issue is that in the server script, there is an apply damage code, would I have to put the detection for the player counter before as: if data.Action = "Counter" then etc?

#

oh, damage module? Brave of you to assume that I am advanced enough to have used that

gray spireBOT
#

studio** You are now Level 3! **studio

tacit pasture
#

I just kinda, placed the damage code in the server script

#

if I would make a take damage module script, would I be able to make it so each time I call this module script the damage would be depending on the move that caused the damage? like a variable?

#

like can I make the damage taken in the module script a variable then when I call the module script, I change that variable to suit the ability/attack used?

#

I don't wanna annoy you further, but please send me a link that explains what tables are, I am very brand new on Luaa, but I have other coding knowledge

#

so it's fine if the link you send is not so beginner friendly

#

these values would be the default

#

but when I call the module script, I can change them

#

right?

#

OHH

#

I am such an idiot, pardon, well then! I believe this is all I needed to know, Going to have to rework some of my code but overall I think it will be worth it! Thanks a lot!

#

this is what I have right now, I am just not using modules since I didn't know muchabout them, just to let you know I worked with lua for like 1 week, I still have a long way ahead of me

cinder seal
#

Na u know u can just use 2 Modules to have everything

cinder seal
#

It’s more true than u think

#

I use only 2 Modules to Handle my Clicker Game that has over 300 TextButtons to each Stat, 60 Pets, A Upgrade System, Ascend system and much more

cinder seal
#

It’s the same thing no matter what

cinder seal
#

your main handler should be a server script, that calls on modules

tacit pasture
cinder seal
tacit pasture
#

What?

cinder seal
#

since u can use Mouse from Player to Play a Event so its techinally like a ClickerGame

tacit pasture
#

no

#

buddy no