Unworking JASS?
Moderator: Cheaters
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Unworking JASS?
o.o.......sooooooooo
i was editing this map....cause i was bored.....
annndd.......the functions i added didnt work Dx
(either that or the triggers didnt work)
is there a limit to the amount of triggers/functions a map can have?
(not talking about that 8mb map size limit)
and....sometimes....stuff in the function main doesnt get called (loaded, activated, etc)
i was editing this map....cause i was bored.....
annndd.......the functions i added didnt work Dx
(either that or the triggers didnt work)
is there a limit to the amount of triggers/functions a map can have?
(not talking about that 8mb map size limit)
and....sometimes....stuff in the function main doesnt get called (loaded, activated, etc)
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Unworking JASS?
From mt previous expirience at jass. There are some stuff that you gotta know about triggering.
Tell me what isn't working and I will try helping you.
Tell me what isn't working and I will try helping you.
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: Unworking JASS?
lol it was on this RPG but i did make it work o.o
and i just went around the conventional method and got it to work
buuut i still wanna no what went wrong
and uhh what are the "some stuff" that u gotta know? xD
and i just went around the conventional method and got it to work
buuut i still wanna no what went wrong
and uhh what are the "some stuff" that u gotta know? xD
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Unworking JASS?
ammm I don't know.. The code? You give us no explenation or source of either the code or map (not even a name.. We know its an RPG)
So how do you expect us to help you.
Just an example.
This code will not work on jass - but it wont give any errors either:
To make it work. You gotta replace the part of function main with this
And add this to globals
If you don't understand any part of the syntax check. Lemme know.
So how do you expect us to help you.
Just an example.
This code will not work on jass - but it wont give any errors either:
Code: Select all
function someCommand takes nothing returns nothing
if SubString(GetEventPlayerChatString,0,3)=="-xp"then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"You used the -xp command")
endif
endfunction
function main takes nothing returns nothing
call someCommand()
endfunction
Code: Select all
function main takes nothing returns nothing
local integer looper=0
loop
exitwhen looper>11
call TriggerRegisterPlayerChatEvent(exampleTrigger,Player(looper),"-xp",true)
set looper=looper+1
endloop
call TriggerAddAction(exampleTrigger,function someCommand)
endfunction
Code: Select all
globals
trigger exampleTrigger=CreateTrigger()
endglobals
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: Unworking JASS?
o.o.....isnt that just the basic stuff?
and....im pretty sure i only asked one thing
"is there a limit to the amount of triggers/functions a map can have?"
my syntax/code was fine too.....cause WC3 was able to run it
there were no anti cheats either
and it wasnt a specific map
i was saying....sometimes, when i add stuff to a map
it doesnt get called
and i haffta use another method
so i was asking why that was....
and....im pretty sure i only asked one thing
"is there a limit to the amount of triggers/functions a map can have?"
my syntax/code was fine too.....cause WC3 was able to run it
there were no anti cheats either
and it wasnt a specific map
i was saying....sometimes, when i add stuff to a map
it doesnt get called
and i haffta use another method
so i was asking why that was....
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Unworking JASS?
Your code might not get executed. There is an amount of triggers that can be used at the same time (I think) but it shouldnt be a problem.
Show me the code and I will try to help.
Show me the code and I will try to help.
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: Unworking JASS?
xDDDDDDDDDDDDD
i think ur missing the point lol
my 2nd post
"got it to work "
if i needed help on a map i woulda posted on requests
"Your code might not get executed. There is an amount of triggers that can be used at the same time"
all i wanted to know xP (that there was indeed a limit to the # of triggers)
ty xP
i think ur missing the point lol
my 2nd post
"got it to work "
if i needed help on a map i woulda posted on requests
"Your code might not get executed. There is an amount of triggers that can be used at the same time"
all i wanted to know xP (that there was indeed a limit to the # of triggers)
ty xP