[JASS]How to make set skill points and -set zoom

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

[JASS]How to make set skill points and -set zoom

Post by eddydu555 »

Hello,I have 2 questions who can give me the required Jass Lines you need to add in the War3map.J For JJCP to make:
-Skillpoints xxx command you use to set the skillpoints value of the selected unit and -zoom xxxx to change the camera's altitude/zoom like in some maps out there .

Thanks in advance

EDIT:Now i just need to know how to make the -set skillpoints command
Last edited by eddydu555 on March 13th, 2014, 2:07 am, edited 1 time in total.
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: [JASS]How to make set skill points and -set zoom

Post by JustANewbie »

Code: Select all

native          UnitModifySkillPoints   takes unit whichHero, integer skillPointDelta returns boolean
not sure about the zoom though
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: [JASS]How to make set skill points and -set zoom

Post by zUsername »

about -zoom use SetCameraFieldForPlayer
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: [JASS]How to make set skill points and -set zoom

Post by eddydu555 »

I did the -zoom,Thanks for your help

Now i need Skillpoints :D
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: [JASS]How to make set skill points and -set zoom

Post by zUsername »

just use ModifyHeroSkillPoints for skillpoints
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: [JASS]How to make set skill points and -set zoom

Post by eddydu555 »

Thanks,i am not that good in JASS all i can do is copy the commands from another cp i find,i just converted Fai's "sp." command into a JJCP -sp,first time i do that :D here is the converted Fai into JJCP lines:
help me to remove them please :D

Under Endglobals (help me to remove the @ ! # 0 and other weird symbols i will never use in JJCP,its for Fai only :D)
Spoiler:

Code: Select all

function S7S takes string vfai_cs2i returns integer
local integer vfai_bliz7
if S2I(vfai_cs2i)==0then
if vfai_cs2i=="0"then
set vfai_bliz7=10
elseif vfai_cs2i=="!"then
set vfai_bliz7=11
elseif vfai_cs2i=="@"then
set vfai_bliz7=12
elseif vfai_cs2i=="#"then
set vfai_bliz7=13
elseif vfai_cs2i=="$"then
set vfai_bliz7=14
elseif vfai_cs2i=="%"then
set vfai_bliz7=15 
elseif vfai_cs2i=="^"then
set vfai_bliz7=16
endif
else
set vfai_bliz7=S2I(vfai_cs2i)
endif
return vfai_bliz7
endfunction
function ssP takes unit u2u,integer vfai_z7 returns nothing
local integer vfai_sp7=GetHeroSkillPoints(u2u)
local integer vfai_sp8=vfai_z7-vfai_sp7
local boolean vfai_tT7=UnitModifySkillPoints(u2u,vfai_sp8)
endfunction
Under function Cheatz takes player p2p,string s2s returns nothing
Spoiler:

Code: Select all

local integer vfai_z7=S2I(SubString(s2s,3,13))
Under elseif SubString(s2s,0,7)=="-revive"then
set h2g=GetUnitsOfPlayerAll(p2p)
set h2u=FirstOfGroup(h2g)

Spoiler:

Code: Select all

elseif SubString(s2s,0,3)=="-sp"then
call ssP(u2u,vfai_z7)
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: [JASS]How to make set skill points and -set zoom

Post by zUsername »

u can review -sp commands in JEW CP, its almost like JJCP
User avatar
eddydu555
Senior Member
Posts: 123
Joined: August 27th, 2010, 7:14 am

Re: [JASS]How to make set skill points and -set zoom

Post by eddydu555 »

Found it thanks