wc3edit.net
https://forum.wc3edit.net/

[GUIDE] SHDR Version for TWRPG
http://forum.wc3edit.net/tutorials-cheatpacks-f80/shdr-version-for-twrpg-t36350-20.html
Page 3 of 3

Author:  arielwingedxxx [ June 22nd, 2020, 7:42 pm ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

I was testing my new map twrpg 0.36 f with changes in mpq ( thanks guide), i only did REMOVING ANTI SINGLEPLAYER and UP RATE DROP but the map twrpg 0.36f didnĀ“t work in multiplayer ,( same map pc 1 and pc2 local network) When i join to the other map ( other player) it stay loading (8%) and i cant launch start ( being host )(posdata:in singleplayer not problems) what i can do? thanks ....

Author:  arielwingedxxx [ July 14th, 2020, 9:34 pm ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

josh wrote:
nuzamacuxe wrote:
It's due to CRC. Whenever you change anything in war3map.j the CRC will change, doesn't matter if you and your friend has the exactly same map. That doesn't applies to models (.mdx, .mdl, ...).


any solve for this things?

recompresss the mpq

Author:  kinoler [ January 28th, 2021, 10:22 am ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

Thank you very much. It was very helpfull for me.

Also if you want to resummon bosses more then 3 times:
1. Press "CTRL+F" and search for "<(3)";
2. You will find that "if" condition:
Spoiler:
if mCv[y1e]==0 and mdv[y1e]<(3)then
call Yje(y1e)
endif

3. Just delete the "and mdv[y1e]<(3)";
4. It will look like this:.
Spoiler:
if mCv[y1e]==0 then
call Yje(y1e)
endif


You can now re-summon bosses which do not cost MP.
To disable MP reduction:
1. Press "CTRL+F" and search for "has activated". If searching has no result try to "remaining MP" or ""stand work"".
2. You will find that "if" condition:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif

3. Look for "call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))" (it is the first line after "if").
4. Delete the "- mcv[YJe]" expression.
5. It will look like this:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)))))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif


You can now re-summon all bosses without any restrictions.

Fatigue
Also afk system still work due to the fatigue system. To disable fatigue elevation:
1. Search for "PLAYER_STATE_RESOURCE_FOOD_USED";
2. You will find function like this:
Spoiler:
function d3x takes integer y1e,integer B8x returns nothing
if B8x<0 then
set B8x=0
elseif B8x>='d' then
set B8x=0
call z_e((Ex[(Dl[y1e])]))
endif
call SetPlayerState((P[(y1e)]),PLAYER_STATE_RESOURCE_FOOD_USED,B8x)
endfunction

3. Delete the "call SetPlayerState((P[(y1e)]),PLAYER_STATE_RESOURCE_FOOD_USED,B8x)" line.
4. Delete also the "call z_e((Ex[(Dl[y1e])]))" line.
5. It will look like this:
Spoiler:
function d3x takes integer y1e,integer B8x returns nothing
if B8x<0 then
set B8x=0
elseif B8x>='d' then
set B8x=0
endif
endfunction


Acceptable for the latest 0.43h_eng version.

Author:  devoltz [ January 28th, 2021, 3:13 pm ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

kinoler wrote:
Thank you very much. It was very helpfull for me.

Also if you want to resummon bosses more then 3 times:
1. Press "CTRL+F" and search for "<(3)";
2. You will find that "if" condition:
Spoiler:
if mCv[y1e]==0 and mdv[y1e]<(3)then
call Yje(y1e)
endif

3. Just delete the "and mdv[y1e]<(3)";
4. It will look like this:.
Spoiler:
if mCv[y1e]==0 then
call Yje(y1e)
endif


You can now re-summon bosses which do not cost MP.
To disable MP reduction:
1. Press "CTRL+F" and search for "has activated". If searching has no result try to "remaining MP" or ""stand work"".
2. You will find that "if" condition:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif

3. Look for "call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)) - mcv[YJe])))" (it is the first line after "if").
4. Delete the "- mcv[YJe]" expression.
5. It should look like this:
Spoiler:
if hnx((GetUnitUserData((W7v))))>=mcv[YJe]then
call hVx((GetUnitUserData((W7v))),hnx((GetUnitUserData((W7v)))))
call oGr(YJe)
call RemoveItemFromStock(W7v,mBv[YJe])
call XYx(yvv,YJe)
call f4r()
call lfx(d1x((GetPlayerId((GetOwningPlayer(GetBuyingUnit())))))+" has activated "+GetObjectName(mBv[YJe])+" (remaining MP: "+I2S(R2I(hnx((GetUnitUserData((W7v))))))+"/"+I2S(R2I(hEx((GetUnitUserData((W7v))))))+")")
call SetUnitAnimation(W7v,"stand work")
call QueueUnitAnimation(W7v,"stand alternate")
call nwx((nLx("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",$A,$A,3.268)),($7F),(W7v),$7D0,null)
endif


You can now re-summon all bosses without any restrictions.
Thanks for the contribution to the guide, latter I will add it to main post.

Author:  Dusit.Thani [ February 20th, 2022, 4:39 am ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

Hi, I'm back playing TWRPG, was trying to create an SHDR + Single Player version for the latest map of the game but upon checking, it seems like a lot has changed in the map's code, therefore, this guide seems to be outdated anymore as I'm trying to follow the instruction but couldn't work my way unlike before. This guide was very helpful to me last time which was 2 years ago, and would deeply appreciated if this guide will get an update. Much love.

Author:  bigdm [ June 7th, 2022, 8:40 pm ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

Hello, would anyone know which part of the code edits the lootbox droprate? It seems that the droprate for things that just just drop items(like mana ancient) without spawning the lootbox have the edited droprate, but things that spawn lootboxes to get the items are different. The lootbox dropchance determins that I beleive and I do not know what part of the code that is.

Author:  Closer [ June 29th, 2022, 8:49 pm ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

Hello, with the updated TWRPGs the guide is very out of date and we can't find the way to allow single player, as the codes have changed.. and for those of us that don't know code, we can't figure it out anymore with your guide.. :(
Similar things go with the drop rate etc.
The chests that drop boss loot are also different codes..
Sorry to bother you, could you please update with at least the chest drop rates?

Author:  balkai [ May 1st, 2023, 1:52 pm ]
Post subject:  Re: [GUIDE] SHDR Version for TWRPG

Closer wrote:
Hello, with the updated TWRPGs the guide is very out of date and we can't find the way to allow single player, as the codes have changed.. and for those of us that don't know code, we can't figure it out anymore with your guide.. :(
Similar things go with the drop rate etc.
The chests that drop boss loot are also different codes..
Sorry to bother you, could you please update with at least the chest drop rates?



yeah would love an update

Page 3 of 3 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/