Help with a map & spell!

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Necro[rLz]
Newcomer
Posts: 17
Joined: August 2nd, 2009, 9:43 pm

Help with a map & spell!

Post by Necro[rLz] »

Hello everyone!

1st Problem: Well, there's this map I'm wanting to edit. I got it deprotected (http://forum.wc3edit.net/fulfilled-requ ... 18737.html), and when I edit it, when I try to save it i get the following messages: 'Not all player starting locations have been placed. Automatically generate locations?' and 'This map could not be saved because the maximun number of objects has been exceeded:
Doodads: 11511 places, 8192 allowed
[...]'

How can i save the map without having to place starting locations, and how can I save it even though it has exceeded object count?


2nd Problem: In this same map, there's a spell I'm trying to edit. Its named Soul-Piercing Shot. It deals 50/80/110/140/170/200% of the hero's intelligence in damage for every shot it makes. I'd like to change the damage to 100/160/220/280/340/400% instead, but I don't know how to edit Jass triggers.

Please help, and Thanks in advance!
AbusivePie
Forum Staff
Posts: 269
Joined: August 16th, 2010, 3:49 am
Title: Not a normal Indian

Re: Help with a map & spell!

Post by AbusivePie »

I think for your second problem you would actually need to edit the abilities data.
Spoiler:
(21:49:41) CoSmOSaiNt: im not perject jen
(21:49:43) CoSmOSaiNt: ...
(21:49:45) AbusivePie: I may just give up on it
(21:49:49) CoSmOSaiNt: perefecT*
(21:49:51) CoSmOSaiNt: perfect*
(21:49:54) CoSmOSaiNt: screw it

Spoiler:
(23:33:35) FatherSpace: Zenn, what operating system are you on? Windows, Mac, *nix?
(23:33:42) zenn31: laptop xD
(23:33:50) FatherSpace: Operating system...
Necro[rLz]
Newcomer
Posts: 17
Joined: August 2nd, 2009, 9:43 pm

Re: Help with a map & spell!

Post by Necro[rLz] »

I know which lines in the map's triggers is about this spell, but I don't know which part to change to edit the damage =/
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Help with a map & spell!

Post by haxorico »

1) use jassnewgen
2) so you don't give us the code and don't know what to do.. do 1 of them utleast xD (post the code, in spoilder and

Code: Select all

 tags)
Image
Spoiler:
(02:24:09)

Code: Select all

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: Select all


(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: Select all

(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: Select all

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

Code: Select all

(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: Select all

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

Code: Select all

(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: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
Necro[rLz]
Newcomer
Posts: 17
Joined: August 2nd, 2009, 9:43 pm

Re: Help with a map & spell!

Post by Necro[rLz] »

I've tried using JassNewGen, but it still doesn't work for saving. =/
And about the coding of the spell: I don't know jass, so im not really sure what part is about the spell so there might be parts of another trigger in that:

Code: Select all

function Zp takes nothing returns boolean
local integer ES
local integer i
local location p
if GetSpellAbilityId()=='A03V' then
set p=GetSpellTargetLoc()
set i=GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
set ES=Yp(CreateUnit(GetOwningPlayer(GetTriggerUnit()),'ehip',GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit())),GetLocationX(p),GetLocationY(p),500.)
set Od[ES]=(yE[$45F+GetUnitAbilityLevel(GetTriggerUnit(),'A03V')]+3.*GetHeroInt(GetTriggerUnit(),true)+yE[i])/ 8.
call RemoveLocation(p)
endif
set p=null
return false
endfunction
function eP takes nothing returns boolean
local real d
if GetUnitAbilityLevel(GetEventDamageSource(),'A05O')>0 and GetUnitAbilityLevel(GetTriggerUnit(),'B00X')>0 then
set d=GetHeroInt(GetEventDamageSource(),true)*(.2+.3*GetUnitAbilityLevel(GetEventDamageSource(),'A05O'))
call UnitDamageTarget(XH(GetOwningPlayer(GetEventDamageSource()),GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()),1.),GetTriggerUnit(),d,false,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_UNIVERSAL,null)
call gj(null,"+"+I2S(R2I(d+.5)),0,'d',$96,GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()),.08,.0,3.,15.)
endif
return false
endfunction
function InitTrig_Soul_Piercing_Shot takes nothing returns nothing
call zh(Condition(function eP))
endfunction
It must be that, but im not sure >.<
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: Help with a map & spell!

Post by naturesfury »

well....
u might wanna include function zh and eP ....
and....go to (if ur using world editor) the unit editor, click ability, go to view and tick display raw values (something like that....its near the bottom), then find the ability u wanna edit....(the names appear XXXX NameOfSkill)....take that XXXX and search it in the jass (.j file) and give us the function with that in it (most likely zh)
might be more helpful than this out of context stuffz