[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture

Search:


View post   

>> No.21148171 [View]
File: 341 KB, 1285x793, customgspawns.png [View same] [iqdb] [saucenao] [google]
21148171

This is kind of an extremely late reply, but to answer the question >21097332 had from the last thread, the values I edited to increase monster spawns are in the following block of code:

mobdensity = mdata(MDATA_MODERATE_CROWD) * 4
itemdensity = mdata(MDATA_MODERATE_CROWD) / 4
if ( rdtype == 3 ) {
flt
flttypemajor = fsetwear(rnd(length(fsetwear)))
fixlv = FIX_QUALITY_MIRACLE
itemcreate -1, ITEM_ID_DUMMY, -1, -1, 0
if ( adata(ADATA_ID, gdata(GDATA_AREA)) == AREA_RANDOM_DUNGEON ) {
if ( gdata(STARTING_GDATA_FLAG + 353) == 100 ) {
item_identify ci, ITEM_KNOWN_FULL
}
}
mobdensity = mdata(MDATA_MODERATE_CROWD) * 2
itemdensity = mdata(MDATA_MODERATE_CROWD) / 3
}
if ( rdtype == 8 ) {
mobdensity = mdata(MDATA_MODERATE_CROWD) * 4
itemdensity = mdata(MDATA_MODERATE_CROWD) / 10
}
if ( rdtype == 10 ) {
mobdensity = mdata(MDATA_MODERATE_CROWD) * 3
itemdensity = mdata(MDATA_MODERATE_CROWD) / 6
}
if ( rdtype == 9 ) {
mobdensity = mdata(MDATA_MODERATE_CROWD) * 3
itemdensity = mdata(MDATA_MODERATE_CROWD) / 10
}
repeat mobdensity

The default values usually look like this: mdata(MDATA_MODERATE_CROWD) / *NUMBER*

So what I did is flip the division into multiplication. This should work for items as well, but I never really bothered trying. At one point I was trying to make this a tweak menu option, with the hopes of donating the code and getting it mainlined or something, but I'm just not proficient enough in HSP to pull it off.

The only bugs that I've noticed are that occasionally a boss/quest npc won't spawn in a dungeon (probably due to an overflow - which could likely be fixed by decreasing the spawn multiplication) but that's easily fixed by resetting the dungeon floor with backspace+enter, and very very rarely it may crash in a dungeon- but I've only had that happen twice in like 40 hours.

>> No.21059183 [View]
File: 341 KB, 1285x793, customgspawns.png [View same] [iqdb] [saucenao] [google]
21059183

I modified custom G and cranked the mob spawns up and it's pretty fun and chaotic. Does anyone want the exe?

Navigation
View posts[+24][+48][+96]