HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A quick set of questions...

05-11-2008, 08:18 PM#1
RodOfNOD
Hi all, glad to be back btw....


I am in need of restricting players to one race without using the Fixed Player Settings under the Forces tab as this does other things and ALL i want to do is stop a player from changing from HUMAN to something else.

I have tried to directly change this part of the war3map.j file:

Code:
function InitCustomPlayerSlots takes nothing returns nothing

    // Player 0
    call SetPlayerStartLocation( Player(0), 0 )
    call ForcePlayerStartLocation( Player(0), 0 )
    call SetPlayerColor( Player(0), ConvertPlayerColor(0) )
    call SetPlayerRacePreference( Player(0), RACE_PREF_HUMAN )
    call SetPlayerRaceSelectable( Player(0), true)
    call SetPlayerController( Player(0), MAP_CONTROL_USER )

and modfied this line to show false:

Code:
call SetPlayerRaceSelectable( Player(0), false )

But this didnt do squat and i cant see why it wouldnt so..... ideas?


Also i used the chaos spell on a buildingto another VERY similar building and in SOME cases it made the building rise out of the ground. i have VERY flat terrain that i have made using Plateau command and there is no differences of terrain type and yet it does this. I even checked with zepirs editor which shows stuff more precisely with regard to tile changes and even there no differences.... ideas?

And finally i am not able to use this as i would want:

Code:
call SetMapFlag( MAP_LOCK_ALLIANCE_CHANGES, true or false)

it appears to work sometimes but not always, i basically want to toggle this on and off and i can only turn it off during INIT and on during the game. It doesnt appear i can get it to turn off during the game, ..... ideas??
05-12-2008, 11:03 AM#2
Toadcop
i have also failed on that =O imo it's not possible... but ofc i am not sure TT (i speak about fixing the race)

does the buildings have some special abilitys ?
05-13-2008, 11:46 PM#3
RodOfNOD
Any ideas Vexorian?
05-13-2008, 11:51 PM#4
Toadcop
Quote:
Any ideas Vexorian?
PM ? TT
// u are awesome...
05-14-2008, 09:49 AM#5
Captain Griffen
Well, for the first one, just open up the Blizzard.j, CnP the relevent functions in with different names, and edit the code to do what you want.
05-15-2008, 02:09 AM#6
RodOfNOD
Quote:
Originally Posted by Captain Griffen
Well, for the first one, just open up the Blizzard.j, CnP the relevent functions in with different names, and edit the code to do what you want.


Please try and do what i have already done, its not like i havent actually TRIED i just dont get the results i want.
05-18-2008, 04:47 PM#7
RodOfNOD
The main issue i need an answer for if it is possible is the auto pick race one. Anyone that has done this successfully please let me know how.
05-29-2008, 01:34 AM#8
RodOfNOD
Bump??!!