wc3edit.net

United Warcraft 3 map hacking!
It is currently March 29th, 2024, 11:01 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: January 4th, 2012, 9:21 pm 
Offline
Newcomer

Joined: January 4th, 2012, 9:07 pm
Posts: 5
Hi there dear editing Community,

I'm trying already for several hours to allow multiple heroes to be chosen at once by ALL players for this specific map "Eclipse Orpg 1.18"
http://www.epicwar.com/maps/193892/

So far I think I determined the part in the script allowing to choose a hero but I seem not to be able to remove the removal of the
hero selection beacon near the tavern.(which presumably does allow me to choose several heroes I think?)
Somwhere around these lines:

function Trig_Hero_Selection_Conditions takes nothing returns boolean
return GetUnitTypeId(GetBuyingUnit())=='n002'
endfunction


Can someone possibly help me? Many many thanks in advance!!!!

Seraaz


*Trying to be able to finish the map with only 2 Players, kind of "multiboxing".


Top
 Profile  
 
PostPosted: January 5th, 2012, 1:24 am 
Offline
Forum Spammer

Joined: March 30th, 2009, 9:02 pm
Posts: 682
sigh...look at this

function Trig_Hero_Selection_Actions takes nothing returns nothing
set udg_HeroSpawnPoints[5]=Location(GetRectCenterX(gg_rct_Hero_Spawn),GetRectCenterY(gg_rct_Hero_Spawn))
call SetUnitPositionLoc(GetSoldUnit(),udg_HeroSpawnPoints[5])
call SetUnitFacing(GetSoldUnit(),280.)
call SelectUnitForPlayerSingle(GetSoldUnit(),GetOwningPlayer(GetBuyingUnit()))
call GroupAddUnit(udg_Area1Respawn,GetSoldUnit())
set udg_ItemHero[GetPlayerId(GetOwningPlayer(GetBuyingUnit()))+1]=GetSoldUnit()
if(Trig_Hero_Selection_Func006C())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetBuyingUnit()),udg_HeroSpawnPoints[5],0)
endif
call RemoveUnit(GetBuyingUnit())
call RemoveLocation(udg_HeroSpawnPoints[5])
endfunction

thats the action function of the condition function u just gave
at the bottom, there's RemoveUnit(GetBuyingUnit())
thats what removes the circle that chooses
now....the reason I sighed
look at this part now,

call GroupAddUnit(udg_Area1Respawn,GetSoldUnit())
set udg_ItemHero[GetPlayerId(GetOwningPlayer(GetBuyingUnit()))+1]=GetSoldUnit()

that adds the new hero to udg_Area1Respawn and sets udg_ItemHERO[bleh] to the new hero
those two functions are used to respawn and award heros for dungeons
the first one really doesn't matter as the group has no limits in size (unless u go to like 999999999 but i havent tested so idk..), just pointing it out
the second one is the issue...it uses ur id+1, which is your converted id (1=red, 2=blue, etc)
every time you get a new hero, that value is replaced with the new hero meaning that the old hero will be "lost" meaning the game will not have that hero on record, so to speak
So, when you do a dungeon, you may have multiple heros, but you would only get items for the last hero you chose...which defeats the purpose of having multi-heros

a better way? hax o.o jjcp it, add some functions to let you choose for computer players, take control of them, hf


Top
 Profile  
 
PostPosted: January 5th, 2012, 1:28 am 
Offline
Old Wrinkly Member
User avatar

Joined: April 19th, 2009, 12:46 pm
Posts: 234
You could just delete the removeunit line and select the hero your going to save last then, no? Or did this guy want to be able to save all heroes?

I haven't played Eclipse personally, so I don't know if the loot is class specific or something, just an idea though.

_________________
ImageImageImage


Top
 Profile  
 
PostPosted: January 5th, 2012, 2:32 am 
Offline
Forum Spammer

Joined: March 30th, 2009, 9:02 pm
Posts: 682
Yes, loot is class specific
He didn't say anything about saving (just running thru the map), but the variable might be used there too
But, I know it's used for the pvp system as well....so....if you want to pvp, you'll need to deal with that too

side note: eclipse is awesome :D try it


Top
 Profile  
 
PostPosted: January 5th, 2012, 2:36 am 
Offline
Newcomer

Joined: January 4th, 2012, 9:07 pm
Posts: 5
First of all thanks for the replies, I also found a way to abuse the "-repick" command by forcing new effects on it,but its way less elegant than your solutions.

The problem naturesfury mentions is just the thing I encountered. First of all you cant save all chars, which is however no problem for me since i can save the game locally for my purposes.
The second problem ist that if ANY if you heroes die, ALL die. This however is somewhat barable. The worst thing anyway is the loot problem. After the completion of a dungeon everyone is ported to some kind of "loot room" where class specific items are spawned for you. With my solution however only one item spawns for the first char I picked and just as you said that kind of beats the purpose....

Since I just started going into the whole mpq editing and Jass editing my knowledge is only based on a few guides.

Could you explain to/show me how I could put your suggestion into reality in regards to the computer players and taking controle of their heroes, since I think that could help with all the problems I encountered. (the portrait including HP of controlled heroes is in the upper left corner too right?)


Top
 Profile  
 
PostPosted: January 5th, 2012, 2:44 am 
Offline
Old Wrinkly Member
User avatar

Joined: April 19th, 2009, 12:46 pm
Posts: 234
But yeah, as nature said just add some cheats, and while your add it just get the items .txt :D

_________________
ImageImageImage


Top
 Profile  
 
PostPosted: January 5th, 2012, 2:16 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
Move to Triggering/Editing Section.

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
PostPosted: January 5th, 2012, 8:09 pm 
Offline
Forum Spammer

Joined: March 30th, 2009, 9:02 pm
Posts: 682
1) add JJCP
2) reconfigure some systems (not sure but you might not be able to "don't click me" heros for units you control so you might need to add a system to allow you to pick/repick for computer players, remove any SP (didnt remember any), and pvp if you want) - the item system will work because they are different "players", just make sure to add computers in the lobby (where you can close, open, comp 1 2 3 slots)
3) start game, activate hax, share (-share # if JJCP...and the hero icons appear, just appears as F4 or F5 and on)
4) enjoy? ^^

if you want specifics, just post again with a specific question (aka, HELP WDF IS A VARIABLE will just get u a facepalm)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)