The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Tips, Tricks, Tutorials => Topic started by: Shin DANZEY on November 24, 2021, 11:24:15 PM

Title: add covid 19 coding into a character!
Post by: Shin DANZEY on November 24, 2021, 11:24:15 PM
Hi!
this topic is not a joke (it could have been!i know...but be focus!).although i have a roster of characters who are very hard to beat! so i make up my mind to give them a "symptom" so you have these codes
(https://i.imgur.com/wwSFjzC.png)
Code:
in statedef -2
[State -2, virus du covid19]
type = LifeAdd
triggerall = !winko && AIlevel
triggerall = roundstate!=3 && time<40 && alive
triggerall = roundstate!=1
trigger1 = 1
trigger1 = random=[99,250]
value = - (ceil(lifemax*0.001) + floor((time/10)))
kill = 1
absolute = 0
persistent = 4 ; you can delete this line if you want that this symptom is more serious! or rise the number for frequency less often

or this variant 2 is less infected!

[State -2, virus du covid19 variant 2]
type = LifeAdd
triggerall = !winko && AILEVEL
triggerall = roundstate!=3 && time<40 && alive
triggerall = roundstate!=1
trigger1 = 1
trigger1 = random=[59,150]
value = - floor((ceil(lifemax*0.001) + floor((time/10)))/2)
kill = 1
absolute = 0
persistent = random%10 ; you can delete this line if you want that this symptom is more serious! or rise the number for frequency less often




also to go further again
you can add a changestate in state 0 or 20 or 21 in common.cns ( walk state, standing state, maybe run state)
type = changestate
triggerall = !winko && AILEVEL
triggerall = roundstate!=3 && time>=30 && alive
triggerall = roundstate!=1
trigger1 = ctrl && random<250
value = ifelse(random<500,5002,5000)
persistent =5
crtl=0




(https://i.imgur.com/wwSFjzC.png)



that 's all! have fun !
now we need a vaccine (some antidote in post#5 ) lol! :thumbsup:
Title: Re: add covid 19 coding into a character!
Post by: Ricepigeon on November 25, 2021, 04:32:13 AM
This actually helps with my research into making code that gives other characters Gonnorhea. Thanks  ;)
Title: Re: add covid 19 coding into a character!
Post by: Shin DANZEY on November 26, 2021, 03:05:25 PM
This actually helps with my research into making code that gives other characters Gonnorhea. Thanks  ;)

you are welcome!
futhermore, i have improved the covid19 coding! it is nicer!
Title: Re: add covid 19 coding into a character!
Post by: TheGamingMario on November 26, 2021, 11:23:45 PM
it's just a lifeadd code lol,i can easily recreate something like this in seconds.
this can't even kill rare akuma lmao.
Title: Re: add covid 19 coding into a character!
Post by: Shin DANZEY on November 29, 2021, 05:39:57 PM
edit: added a covid 19 variant 2  coding in first post !
this variant is less infected than the first code!
have fun !
if you look for a vaccine, you can add this in the code
(https://i.imgur.com/xdN3WXJ.png)
Spoiler, click to toggle visibilty
these are examples you can find your own vaccine also!
good game!
Title: Re: add covid 19 coding into a character!
Post by: Shin DANZEY on December 04, 2021, 11:30:25 AM
also to go further again
you can add a changestate in state 0 or 20 or 21 in common.cns ( walk state, standing state, maybe run state)
type = changestate
triggerall = !winko && AILEVEL
triggerall = roundstate!=3 && time>=30 && alive
triggerall = roundstate!=1
trigger1 = ctrl && random<random%300
trigger2 = ctrl && life< lifemax*0.01
value = ifelse(random<350,5002,5000)
persistent =5
ctrl=0


it will simulate a sickness!!!
really!!!



Title: Re: add covid 19 coding into a character!
Post by: GreatFunk on December 05, 2021, 04:21:19 PM
nice code.