#archived-modding-development
1 messages · Page 221 of 1
yea so your brain got dumber
demodder imo
shame
make me modder instead
well you're a math person
i have a big brain
Mystery for modder 2k18
you need galaxy brain to comprehend modding staff
hey Mys could we have a honorary modder of the year?
sorry to be a modder you will have to not be avenging angle
but i am
are you?
ptk you will always be an admin modder speedrunner in my heart 😄
modder of the year?
Thanks! ❤
yeah
make ptk/dlk honorary modders for a day every year
because they spend more time here than the actual modders

modder of the year is benji
this is just meme2 and speedrunning2 tbh
time to screencap everything in modding staff
thank you i will take my leave now
ok
university life sucks
I feel ya
also I live from one cup of coffee to the next
lmao I just finished mine
I don't drink coffee I do this alternative thing called sleeping enough
haha yes i as well partake in the frequent consumption of caffeinated beverages
how do you even make your coffee work everytime i fucking drink one it just increases my heart rate and nothing fucking happens
I can sleep for 14 hours and still feel tired and exhausted
Tim Hortons ™
no u partake in shush
sean sleeping yeah sure
Usheb are we talking about 56?
also the coffee makes you not die
I had just woken up when we talked about randomizer
That's why I was like 15 minutes late
Imagine that
15 minutes late to a discord discussion 
Yes
NeverLateSean is what they call him
also ptk, how was your stream? Sadly I was at the doctor's, so I couldn't watch it
hope it went fine
ptk streamed!?!?
ye

it seems to be a test indeed
good boy
20 minutes of just beating s6
my mic would just be my fan
just use notepad
is ptk brazillian?
he speaks pt
hey guys today we streaming splice
almost there
non sei pt
7/10
obrigado
como vai
de nada
vai tomar no cu 😃
wow
lmao
savage
me no hablo
woah
eu tamben
i'm working on it
he tries
okay, 12h from now I'm gonna stream in pt-br and there's nothing you can do to stop me
and I'll fucking finish underhero
that game's costing me my sanity
I still haven't finished the haunted mansion ffs
it just keeps on keeping on
is it getting better tho
why not stream in english so you can have your boy dlk watching you
i'll stream 12h from now to steal all your viewers with my splice gameplay
Oh?
new language?
o shit
inglês my dude
oh
Английски
Kurwa
eww
Ahr nnñckn
TTacco, why
I dont even know what it means tbh
is that english in russian
means Whore
english looks ugly
but isnt kurwa polish
it is

tbf just assume every language you dont understand as russian
oh Foldy is papers
I think it has the same meaning across all nearby languages

didn't recognize you for a second there pal

hehehe
hey i passed the test
what
i honestly thought this was 56
. . .
short test tbh
well i have the big brain so it didnt take me long
was about to make a "that's what she said" joke
now i have to do programmer things cya guys
but you spared me the embarrasment
DLK pls
haha guys fsms amirite xd xd
what
thank you thank you
holy shit 56 turned into dlk smh
we are the same perosn
tbh pfp are so overrated
Gradiw
then why aren't you like sean
Gradow
Gradow!
because
GradOwO
I made it like that because it's a black moth
haven't touched my pfp since
for the blackmoth mod
and I'm not planning to
ban dlk for impersonation when


seeing gradow or 56 blue is strange
I was blue before I was green tbh
inb4 DLK becomes Foldy and impersonates me
tbh pretty sure before the speedrunner role overhaul half of the speedrunners only took it for the name color change
hello
oh no
oh no
literally 90% of people with the role did it for the colour
exactly
yes
yo sean go impersonate kry and confuse people
color and pfp wouldn't work tho
That rank doesn't exist.
almost

hm
?rank
Aliases: ?team
Description: Join/leave a rank
Cooldown: 2 seconds
Usage: ?rank [rank name]
Example: ?rank Mystic
?team
Aliases: ?team
Description: Join/leave a rank
Cooldown: 2 seconds
Usage: ?rank [rank name]
Example: ?rank Mystic
?rank [rank name]
That rank doesn't exist.
?team mods
That rank doesn't exist.
it's not a rank it's a team 😡
?rank Mystic
That rank doesn't exist.
Aliases: ?team
Description: Join/leave a rank
Cooldown: 2 seconds
Usage: ?rank [rank name]
Example: ?rank Mystic
?help
dlk youve been here for like 2 months now why dont you have admin yet
thats what im wondering
@solemn rivet sorry, i didnt know you asked for something, i was coding, sure, will upload the project later, i'm doing little tweaks (its fully functional)
?flipcoin
prolly ask other modders to do it for you
Where are you?
me?
in brazil
for whom
btw, just a curiosity, if you dont have the quill but you have the compass, the minimap looks kinda interesting, it doesnt update the rooms: https://puu.sh/BAKqp.jpg
for whom it may concern
Bocasucia
ngl that minimap looks rad(iance) as hell
Cruces Olvidados
did you use canvas shit for that
no, its actually a camera
oh
maybe certain words have multiple meanings 🤔
fun fact the game map are made of tksprites and not hud stuff
ye
I mean a tk2dSprite is just a fancy MeshRenderer
oh
yeah i know
didn't know that
https://puu.sh/BAKtw.jpg it also shows pins and stuff
I thought it was a canvas sprite
Paso del Rey
very nice Wyv!
gonna upload it, it will be a beta, if someone can test it before merging with the charming mod it would be great, specially because there might be bugs somewhere, probably with finding certain areas
@floral furnace ~
Oh I thought you meant that
what?
i wasn't talking to you
oh ok
What does Charming do again?
but the compass charming minimap is... not really a minimap
its more like a copy of the screen
yeah
well it's a fairly small map
How do the other two charms change, in brief?
a minimap, if you will
heavy blow sends the enemies flying
and they bounce
and bouncing deals damage
it's glorious
no the mod for glorifying charms is exaltation
Swarm makes the little flies that collect geo fly around and destroy all of the geo deposits, collecting the geo frm them in the process
please dont
me my mom checks my phone

also is overriding a charms buff/benefit feasible
Nice, nice!
iirc they just added random Charm bool checks for that
glorious heavy broken
theoretically, yeah, ttacco
i see
basically what happens when you unchain god
I think charming mod should have more charm modifications, not just those 3 tbh
MoP
and Xhu already made something similar with his Exaltation mod
makes your nail longer with every hit
notices your nail length OwO what's this?
ngl i remember watching sean's stream of chaos mod and giant nail ranges looked rad as hell
noooo
shush dlk
i thought that was italics
I should probably make that
not bold
sounds feasible
now its too late to fix it 
updated guys!
its always too late to fix anything 😔
noice
kewl
you can download the mod from the bin/debug folder btw
meltan bois
alolan exeggutor tbh
i really hate exeggcute
its just ditto meshed with the unknowns tbh tbh
that doesnt look like unown at all
well the n u t part reminds me
I am sorry

whats the past tense of nut
nat
meltan
nutted or nat?
n u t ' s
nut's'd
It was a legit question but ok
nutted then
i dont like that
whomst've'd but with nuts
it should be nat
also i cant find a single thing about iconoclast's guns, the wiki literally has like, 3 pages
also imo its nutted
sounds, better
nutteder
I nat when I saw TTacco
after uploading the files i find two bugs just by opening a normal save <_<
Cease
...
story of my life tbh
ttacco what do you wanna know about the iconoclasts gun?
got like 39/40
wow not even 40/40
5
.
wow not even 56/40
no veru is not an element
dunno do they have ammo counts? like how do they make you move, cuz im just gonna rewrite 70% of my code at this point so might as well rewrite it like iconoclast
vanadium yep
not sure which
bapanadium
yes
yed
ttacco: no ammo
yeeters
yea
yef
i actually laughed at bapanadium
shooting fills an "overheating" bar
and when it's full, you can't shoot anymore
Rd must be Radiantium
but if you stop shooting it slowly drains
different types of shots fill the bar differently
charged shots fill it more than normal shots
question if you break that overheating limit, you cant shoot until it goes back to 0 or?
don't forget the speed boost
yep
yeah
yeah just add recoil for that
Rd is Radium, isn't it?
or whatever code is in hk for the nail recoil
@ Sean iconoclasts but HK speedrun
also
it's basically a version of double jump
aside from overheating,
it's really fun to mess around with
ahem
normal shots have short cooldown times
normal gun
is there different gun types for that?
literally 0
wait so are there different bullet types? explosives and what not
wait are you talking about the mod
kindoff cuz im just gonna ripoff iconoclast for this
Oh so that's Iconoclasts
i mean, that actually sounds rad ngl
yeah that's the name
yeah, it's great for striking enemies from behind
mystery the enemies are AIs they don't get surprised
i think its not gonna be a simple as
if bullet hits enemy
swap the transform position
logic isnt it?
dunno the last time i kept saying "oh this is the easiest part of the code" i just realize its not
it also works with specific objects
yeah
just replace that with the dash slash i guess
like boxes and targets
you can just check if the target has a HealthManager component imo
or just copy the check from enemyhpbars
(because doors and levers have healthmanagers)
GPL 3 i n t e n s i f i e s
oh yeah i remember you mentioning the levers having them
but wouldnt moving levers around be rad
no
i think it would be
but u wrong
no im never wrong
isnt that the time hpbars started giving boss hp bars to levers?
shhh
smh
i love you
no
I love you
no me
this is my favorite anime moment ngl
top 10 most friendliest anime characters
top 10 friend anime characters
top 10 most приятелски настроени anime characters
npnrterckn hactpoehn
top 10 anime betrayals in the making
🤢
Only charged, ttacco
Charge shots give you recoil
So you can use that recoil as a boost
oh ok thanks
Pmuch like the nail in hk
Hitting enemies makes you recoil
But you can use it to jump higher (i.e. Pogoing)
Except that the gun doesn't need to hit
Or the shot, actually
Not really, because it's omnidirectional
ok ok, i think i saw 56 having a syntax that allowed you to call methods from the herocontroller class, so ill just call that during the charge shot
hmm i see
oh is the guns omnidirectional?
currently broke right now
also might as well just make my own bullet at this point because screwing with the fireball go is so fucking painful
but you have finished it tho yes gradow?
yes
ngl this gun mod sounds kinda poggers
Yeah
Krythom is trying to finish it right now
That's why you watch me
Got it
Anyway, I'll stream it later today TTacco, if you wanna see what it's like
Same
Again i would love to gradow but its literally 11:30 pm here, and i have like, a 7AM-6PM class tomorrow 
Np
just dont go
We're in opposite time zones my dude
yeah like half of the guys that goes regular in this channel are
anywhere along SEA
how can you live on a sea lol its all water
he a fish m8
PH boi
a fish taco
in which timezone is it 11:30pm
i think its uhh
I'm GMT-3
UTC +8?
@copper nacelle speaking of timezones how the fuck do you get away with starting your homework at 2:30am?
tbf timezones are just made by the government to sell clocks
even better question
how does he get 6 hours or less sleep without feeling like shit
on a school day no less
he gets like 3h tops
philippines smh
he already said it even dlk
oh
do you not read m8
(are chineese people even allowed to use discord? serious question)
we have a few chinese speedrunners
yeah you can use a vpn
they like doing pantheons
but without it
dont know much about the limitation but i know shit like twitter and fb are banned iirc
thats fucked up
i dont see the lost on no fb tho
my problem is western shit goes from being perfectly ok one day to banned the next
often without any real good reason
The Philippines has a democratic government in the form of a constitutional republic with a presidential system.[229] It is governed as a unitary state with the exception of the Autonomous Region in Muslim Mindanao (ARMM), which is largely free from the national government. There have been attempts to change the government to a federal, unicameral, or parliamentary government since the Ramos administration.[230][231]
well without good reason to the citizens or whoever uses the internet tbh
i am proud of you
thanks dlk for that uhh, description
No problem dude
lul so u guys have a native american reservation but for muslims

anyway what did you expect the philippines to be a dictatorship? @cunning lagoon
i mean, its slowly inching into one tbh

wow lmao they made 1984 into a real thing lmao
@floral furnace is thisz u
yes i am a non sentient piece of landmass thank you
Well
I am better
I am a colossal shapeless mass on tentacles and eyes, devouring and desolating all in its path
tbh that sounds rad
well you are better than everyone else so that's not fair
hmm thats an odd haircut tbh
My hair's messy, okay!
Ok so how can anyone get stuck on hornet 1
oh hornet isn't so hard?
I just saw some dude on reddit asking if they should give up on the game because they are stuck on hornet 1
DL be like:
"How can anyone get stuck on NGG"
me irl
oh yeah PS4 release is like right now
oh and uhh XBOX too
DLK is gonna sort by new for the next few weeks or so


Yes
Real shit?
Yes
hornet took me 4 tries but I gotta say the first salt and sanctuary boss took me about 40 tries.
rad for me aswell
or at least the one i had to spend the most time on
because of thk
(S&S was a weird game for me because it got easier the farther into it I got. I reliably killed many of the lategame bosses on the first or second try.)
would you recommend S&S btw?
it's a fun game, the art is ugly but the game is fun
idk if I'd recommend it but I liked it
never played dark souls so don't have any point of reference
yeah ive read that you should wear a helmet all the time just to hide the face
it does some very questionable design decisions
what are the difficult games youve played yet? cuz all of them are dark souls, according to journalist these days

i played hollow knight which iss like the dark souls of metroidvanias
ive honestly played 1 before HK and i hated anything past Ornstein
you know whats gonna happen when aa posts his essay
like theres a levelings system but levels basically only give you passive stat boosts which make the game easier.
All the weapons are hugely unbalanced. I played through it with a single dagger which is literally weaker than fists
Also you lose maximum hp as you get hit which removes the tradeoff of if you should drink a potion when you have medium health or save it until you lose some more so you don't run out of potions.
like theres a levelings system but levels basically only give you passive stat boosts which make the game easier.
All the weapons are hugely unbalanced. I played through it with a single dagger which is literally weaker than fists
Also you lose maximum hp as you get hit which removes the tradeoff of if you should drink a potion when you have medium health or save it until you lose some more so you don't run out of potions.
TTacco def play s&s
less so on because its too hard and more on because the other areas are too linear
another one my wishlist then
Lose maximum HP
DS2 flashbacks intensify
Dlk saw me playing it
Gradow
It's fun
have I ever told you
ill check valdis story
uhh English and Filipino
hence its used so often theres a hybrid language where you combine both randomly
(Gradow?)
Papers!
so essentially if you dont know what word to use in filipino you just use an english word
you regain maximum hp when you rest at a sanctuary but that you lose it from being hit makes it pointless to save your potions for when you are low health so you don't run out of potions @floral furnace
it removes a core tradeoff that could have been in the game
Gradow
i see
have I told you
👀
that you are amazing and that I look up to you?
@compact sedge by sleeping only 2 hours
well, theres a mod that fixes that right
lul nobody mods the game

That's very sweet papers!
sounds like an essential mod tbh
I don't know if anyone should look up to me
Hi, ako ay DLK
But I appreciate it
also speaking sleep i have classes tomorrow and i dont even have that much school work to do yet im still awake, 56 are you fucking proud of me?
nice
you literally just said "Hi im am a dlk"
Kumusta ka TTacco
I mean, I'll probably also physically have to look up to you...

56 is a bad influence imo
how am i supposed to learn it then
Wdym papers?
i use english in the majority of me having a conversation with my friends
I mean you're probably taller than me
i slept 1.5 hours and did my work on the bus
Possible
kumusta ka 😡

yes
I'm not very tall tho
How tall
i should really sleep no joke im gonna die tomorrow, but good thing our software engineer prof is gone so i can just sleep for like 3 hours
for a whole 3 hours!?!?
haha nice
halfway through the day
finna sleep on the bus
sleeping more healthily
no
consider
ok bye
6 ft

sleeping on the bus sucks cuz usually teh bus sucks
lol manlet
That's
bye as well

that's taller than you papers
its like 1m 70cm
it' 182 right?
183cm
Ok
We need a tallzote emote precisely for this situation
make like
one for the head and one for the feet
then one or the body and you can use it many times
to make it as long as you want
Yup
@ admins
How tall are you papers?
177-178cm
5'9'' here
depending on if I can measure myself properly or not
That's pretty much the same tbh
i think im around that aswell
havent measured myself in years
but i also havent grown
¯_(ツ)_/¯

But you don't have to look up to me, papers
I'm by no means worthy of it
And
We're friends
how papers sees the world
lmao
Seems accurate
i'm 3'6"
im 4'20''
I'm 6'90''
4'2''0'''6''''9'''''

we shouldn't have showed him the power of the global emotes
ah yes 4 ft, 2 inches, 0 barleycorns, 6 thou, 9 millithou

is brumm the same character as nymm but different?
ah no they look different
ah no they have to be the same guy right
is this what #hk-lore goes through every day
lore has slowed down a lot
I think #archived-modding-development might always have more messages than it
they ran out of topics to talk about
while we will always have shitposts to shitpost
now 15% of the messages
disgusting human being
they had a dream of making an entirely new server, which for their purpose was just to talk about HK lore and that's what they did and now lore exists and they mostly use that.
hmmm
it has a lore channel which is mostly dead but was the main reason for it's creation in the first place.
also I think the actual bug porn channel was deleted
oh so that was an actual thing
not that I would know from first hand experience
fantastic
yeah it was flukenest
i said it as kind of a joke
apparently so. I left it because it was dead disgusting
papers?
idk he's the only artist i know
never been to either of the art channels
never will
not that there's anything wrong with them
i'm just not interested
understandable x2
aka was like the only active person in flukenest
Yes, i also masturbate to drawings of bugs

ask aka if it still exists
aka what!!
afaik basically owned the server
find someone who has the google drive link
3rd pin here
and then uh. for anything more recently drawn I guess you'd have to ask the artists directly. probably just aka and halfrose
i never know if
is a sarcastic laugh or an actual laugh
both
i've got a site if you're interested

tru
but isn't this meme2
i thought this server was sfw
;splrs imo
benji will murder me if i send anything nsfw
wow i've always wanted to marry the guy who made croatia in excel
when are you changing your pfp
when i feel like it
Ok
when are you changing yours
never
ok
em, who put the overhaul mod in the mod installer? i need to update it
Not me
Totally you.
I bet it was me
how do i update it? 😃
tbh means to be honest
i would also like to be added to the drive if you don't mind
once i fix it
baldur? D:
its not updating some scenes because the names arent in sync
what the fuck does this mean?:
[ERROR]:[API] - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: out of sync```
GameObject currentArea = areas[area];
Vector3 localpos = currentArea.transform.localPosition;
GameObject originalArea = GetOriginalAreaByName(area);
GameObject.Destroy(currentArea);
GameObject newArea = GameObject.Instantiate(originalArea);
newArea.name = "Minimap_" + area;
newArea.transform.SetParent(minimapParent.transform);
newArea.transform.localPosition = localpos;
areas[area] = newArea; ```
the 3 objects work, they return their value, it seems it gives an error after they are created
I mean, show more of the error
[ERROR]:[API] - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: out of sync
at System.Collections.Generic.Dictionary`2+Enumerator[System.String,UnityEngine.GameObject].VerifyState () [0x00000] in <filename unknown>:0
at System.Collections.Generic.Dictionary`2+Enumerator[System.String,UnityEngine.GameObject].MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[System.String,UnityEngine.GameObject].MoveNext () [0x00000] in <filename unknown>:0
at OverhaulMod.Minimap.UpdateAreas () [0x00000] in <filename unknown>:0
at OverhaulMod.OverhaulMod.CharmUpdate (.PlayerData pd, .HeroController hc) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
at Modding.ModHooks.OnCharmUpdate () [0x00000] in <filename unknown>:0 ```
the dictionary is areas, and it contains the gameobjects for the areas
areas = new Dictionary<string, GameObject>()
{
{ "AncientBasin", GameObject.Instantiate(map.areaAncientBasin) }, { "CityOfTears", GameObject.Instantiate(map.areaCity)}, { "Crossroads", GameObject.Instantiate(map.areaCrossroads)},
{ "CrystalPeak", GameObject.Instantiate(map.areaCrystalPeak)}, { "Deepnest", GameObject.Instantiate(map.areaDeepnest)}, { "FogCanyon", GameObject.Instantiate(map.areaFogCanyon)},
{ "FungalWastes", GameObject.Instantiate(map.areaFungalWastes)}, { "Greenpath",GameObject.Instantiate( map.areaGreenpath)}, { "KingdomsEdge", GameObject.Instantiate(map.areaKingdomsEdge)},
{ "QueensGardens", GameObject.Instantiate(map.areaQueensGardens)}, { "RestingGrounds", GameObject.Instantiate(map.areaRestingGrounds)}, { "Dirtmouth", GameObject.Instantiate(map.areaDirtmouth)},
{ "RoyalWaterways", GameObject.Instantiate(map.areaWaterways) }, {"Cliffs", GameObject.Instantiate(map.areaCliffs)}
};```
it was working until i changed the code to update them with the dictionary instead of the scene name
for some reason i can't figure out how to constantly drain mp
it seems real simple but it always blackscreens the game
On update do add soul and add a negative number
in the old version i checked with the scene name if the scene was part of an area, now i want to just check if the area is checking is the one it is asking for
Shouldn't do anything weird
hi kdt xD
"One of the restrictions of a foreach loop is that you can't change the underlying thing you're iterating over. If you change a dictionary while you're iterating through it, the program has no idea if it's getting out of sync and could end up for instance in an infinite loop."
So this is the problem then...
oh actually wait i need to make a coroutine for that cause otherwise it'll be too fast
any other way to loop through a dictionary and change it in the loop?
Are you modifying the dict in your loop
yeah
if i make a coroutine that does every 10th of a second it should be better
Add stuff to be removed or added to another list
Then iterate over that
And remove matches from main list
i will try
uhhmmmm
Coroutine's can work, or you could use a float and subtract the truncated value then fmod it with 1
Just check what your soul is in your coroutine
Unless you're already doing that
Are you using the method to lower soul or just setting the var?
lower soul
How are you checking for 0 soul? Just an update or a hook on soul change?
hook on playerupdate checking if soul is 0, and then killing if it is
im putting the drain after that in the thing just in case it's what's fucking up
{
for(; ;)
{
HeroController.instance.AddMPCharge(-1);
yield return new WaitForSeconds(.5f);
}
}```
working so far with a list, 😃
Just check before that if soul is 1
Well if its 1
greater than or equal to one, drain
{
IEnumerator REEEE()
{
for (; ; )
{
HeroController.instance.AddMPCharge(-1);
yield return new WaitForSeconds(.5f);
}
}
}```
will that work
whats that ienumerator lol
Don't think enumerators can be outside the body of a class
it's not flagging for me
Shouldnt he be calling it with a coroutine and it has to be declared as a method outside another method?
Also I mean do if(soul <= 1) killPlayer; right before you subtract the soul
Im on my phone so I can't give you actual code 
And yes coroutines are defined like methods in the main body of the class
I've never tried to define one in the body of a method, but I assume it wouldn't work
{
PlayerData.instance.health = 0;
HeroController.instance.TakeDamage(HeroController.instance.gameObject, CollisionSide.right, 9999, 0);
}
else
{
while (PlayerData.instance.MPCharge >= 1)
{
IEnumerator REEEE()
{
for (; ; )
{
HeroController.instance.AddMPCharge(-1);
yield return new WaitForSeconds(.5f);
}
}
REEEE();
}
}```
will that work
what is the for(; 😉 btw, doesnt look right
it is
its what lets it cycle through the addmpcharge and wait half a second
i believe
why you dont use another while inside it? you also need to check if the hero controller exists in the coroutine
That for is equiv to while(true) I think
at any rate, i think this should work in terms of adding mp charge and killing the player working in conjuction
I have no idea what you're trying to do
you are also doing something wrong too
Also Wyv, yeah, you can't change a list while iterating over it. Best way to do it is what kdt said
killPlayer() isn't exactly accessible for me so im using my own kill thing
adding or substracting values with just numbers are framerate dependant
Stick the 0 soul check inside the enumerate
you might use n * Time.deltatime * value
or just n * Time.deltatime
WaitForSeconds fixes it to be fps independant
oh wait
i didnt see that
he still needs to check if the hero exists or not and break the loop if he is not
because its an infinite coroutine it will run forever
That check should precede all of this tbh
also
it looks like you are running your coroutine multiple times instead of once
oh wait
He shouldn't be doing anything if hero is null
he is not running it as a coroutine
If the coroutine's runs on the hc.instance it should be fine
Yeah, but if he calls hc.instance when none exists...
i had cases where i got errors because the original entity that started the coroutine was destroyed and the coroutine still worked
he is calling it inside the while instead of once
idk, it looks weird for me
{
if (PlayerData.instance.MPCharge == 0)
{
PlayerData.instance.health = 0;
HeroController.instance.TakeDamage(HeroController.instance.gameObject, CollisionSide.right, 9999, 0);
}
for (; ; )
{
HeroController.instance.AddMPCharge(-1);
yield return new WaitForSeconds(.5f);
REEEE();
}
}
REEEE();```
does this look right at all
That's not how you use coroutines
It is weird, he's not starting a coroutine, he's declaring it inside a method body
quick question
Google unity coroutines
does it remove mp?
my knowledge of coroutines is limited
or does it just not work
It'll run, just not as a coroutine
You start them with GameObject.StartCoroutine(YourCoroutine());
Its a string with just the method name iirc
Yup
you can also set up coroutines as variables and stop them or manage them outside of the coroutines
Instead of doing for ( ; ; ) you can do while (hc.instance != null)
How so?
i had to do it in my game once, i dont remember how exactly that works tho
i think you store the ienumerator inside a Coroutine object
Your game? 👀
HeroController.instance.StartCoroutine(REEEE());
i'm guessing that's how i start the coroutine
yeah, i cant show anything about that yet
You can just call stopcoroutine on an enumerator iirc
although i have over a year of work already xD
but i'm changing art and its still on the "dev side" (only mechanics, no levels yet)
Its just "REEEE" with the quotes and without the brackets
@summer badge as long as its a game object you can start a coroutine, so thats fine
@solemn rivet if you are interested i can send you stuff but it has old art and the "test level" looks awful xD
I am interested! 



