Trigger Error

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

siverdragon12
Member
Posts: 57
Joined: March 28th, 2010, 2:49 am

Trigger Error

Post by siverdragon12 »

Spoiler:
function Vr takes nothing returns nothing
local integer pickedItemId
local itemtype Er
local integer Xr=0
local integer Rr=0
local integer nr
set nr=1
loop
if(bj_stockAllowedPermanent[nr])then
set Rr=Rr+1
if(GetRandomInt(1,Rr)==1)then
set Er=ITEM_TYPE_PERMANENT
set Xr=nr
endif
endif
if(bj_stockAllowedCharged[nr])then
set Rr=Rr+1
if(GetRandomInt(1,Rr)==1)then
set Er=ITEM_TYPE_CHARGED
set Xr=nr
endif
endif
if(bj_stockAllowedArtifact[nr])then
set Rr=Rr+1
if(GetRandomInt(1,Rr)==1)then
set Er=ITEM_TYPE_ARTIFACT
set Xr=nr
endif
endif
set nr=nr+1
exitwhen nr>$udg_location01
endloop
if(Rr==0)then
set Er=null
return
endif
call ir(Er,Xr)
set Er=null
endfunction
$ is error
How to fix? :lol:
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: Trigger Error

Post by owner123 »

http://forum.wc3edit.net/useful-tools-f ... 17931.html
Try it idk if it will work for this.
siverdragon12
Member
Posts: 57
Joined: March 28th, 2010, 2:49 am

Re: Trigger Error

Post by siverdragon12 »

Don't work
What Can I do?
User avatar
infernorock
Forum Fanatic
Posts: 324
Joined: August 31st, 2008, 10:24 am
Title: ☆Fate Testarossa★
Location: Malaysia

Re: Trigger Error

Post by infernorock »

Just ignore that symbol.
It doens't cause any problem to the maps.
Spoiler for Wc3 I'm using and Garena ID:
The wc3 version I'm current using:1.21,1.24b,1.24e
Garena UID-->pkyer123(BANNED for some reason LOL)
-->pkyer(Active)
-->InfernoRock(Banned for inactive...WTF!?)
Small Sized Duck wrote:IF someone is talking about a map they wanted cheated 17 years ago. And you bump it, you're retarded.
MrEw0k
Member
Posts: 71
Joined: June 18th, 2010, 7:10 pm
Title: W4NN4B3

Re: Trigger Error

Post by MrEw0k »

Try replacing all the "$" with "x0" :)
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: Trigger Error

Post by owner123 »

@Infernorock
He wants to save the map and doesnt know JASS.
@MrEw0k
Does that really work?
@Topic
Ive had this problem before, and posted it, but ive never gotten an answer on how to fix this.
User avatar
xYeta
Senior Member
Posts: 140
Joined: June 4th, 2010, 10:47 am
Location: Now 'n everywhere.

Re: Trigger Error

Post by xYeta »

MrEw0k wrote:Try replacing all the "$" with "x0" :)
It's "0x" ._.
Image
1 l1ek t0 trOl1
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Trigger Error

Post by haxorico »

Wow seriously? Next time Ill start warning people.
xYeta and MrEw0k - I highly doubt you understand whats "0x". If I recall it. You asked what it is and FatherSpace told you "replace $ with 0x" so please stop giving people the wrong information.

****Back on topic*****

when you see $[number] like $99888 it means its in hex-decimal count.
Whats hex-decimal?
Well we humans work with the Decimal count. Meaning we have 10 digits. 0,1,2,3,4,5,6,7,8,9
then we go over the same digits again but adding +1 on the left side.
so we now have 10,11,12,13,14,15,16,17,18,19 etc...
Why we humans use this type of count? Simple fact. We have 10 fingers and That's how the primitive human used for counting.
Now hex-decimal count is using 16 digits.
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
So if in hex-decimal you would say "8+9" the answer would be 11 - so hex-decimal 11 is 17 in decimal. (kinda confusing)
So as I said above $ means in jass that the following number will be in hex-decimmal. So if the number was $99888 we replace it with 628872. How I got to that number? Well here is a link http://www.easycalculation.com/hex-converter.php.
But if a map has it its probable it has alot of it. So I suggest you use the program made by YellowAfterlife that does it for you - useful-tools-f69/war3-un-hex-mass-fix-hex-numbers-in-map-code-t17931.html
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?
User avatar
xYeta
Senior Member
Posts: 140
Joined: June 4th, 2010, 10:47 am
Location: Now 'n everywhere.

Re: Trigger Error

Post by xYeta »

haxorico wrote:Wow seriously? Next time Ill start warning people.
xYeta and MrEw0k - I highly doubt you understand whats "0x". If I recall it. You asked what it is and FatherSpace told you "replace $ with 0x" so please stop giving people the wrong information.
So what I understand from here is, the fatherspace's method is a wrong advise? The OP asked what to do with the error, he didn't tell us to do a full explanation (well if you want to, you can). TBH, yes I just tell the OP what FS has told us.
Image
1 l1ek t0 trOl1
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: Trigger Error

Post by haxorico »

ok and let me ask you. DID YOU UNDERSTAND what it meant?
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?