• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Problem with my Jass

Status
Not open for further replies.
Level 19
Joined
Aug 24, 2007
Messages
2,888
what will that gas do
explain a little more please
I mean do you cast it on a unit or is it like Rot in dota
what are its effects on unit
does it spread another enemies when they come near of poisoned unit
etc etc
 
Level 2
Joined
Sep 25, 2007
Messages
14
Tnx I got 1 in the spell section but I got another problem. I'm making a defence game and it's working.I already made a trigger which could let the creeps spawn and attack your base but there's a tendency that they gonna stop and even you attack them they just go away without attacking you,. I use attack-move trigger.
 
Level 6
Joined
Nov 4, 2004
Messages
125
That's really weird. Maybe give us more details: like if it is certain the creeps are capable of attacking "back" (valid targets, range etc). Then there might be a problem with units classified as workers because those usually don't attack (i think not even with an attackmove order on ground). More details please :)
 
Level 2
Joined
Sep 25, 2007
Messages
14
The Creeps are enemies, They attack me but like i said, there's a tendency that they will not and just stop by.
But do you think, putting a trigger that happens every second will help?
like
Event:
Every 1 seconds of game time
Action:
Unit Group Attack move to Player 1 Red start Location.
 
Level 6
Joined
Nov 4, 2004
Messages
125
Are the creeps neutral hostile? Because there's always problems with ordering neutral hostile units, they somehow have a tendency to always return to the point they spawned/were created.
 
Level 5
Joined
Aug 16, 2007
Messages
149
My script won't work

I made this script (a simple one to move units in a group forward), and it seems to be fine, except when I try to enable the trigger. It comes up with all kinds of problems
well anyway here it is:
JASS:
function Trig_MoveWithArrowKeys_Conditions takes nothing returns boolean
    
    return true 
endfunction

function Trig_MoveWithArrowKeys_Actions takes nothing returns nothing  
    loop
        loop
            call SetUnitPositionLoc(u,PolarProjectionBJ((GetUnitLoc u,25.00,(GetUnitFacing u))
            exitwhen TriggerRegisterPlayerKeyEventBJ( gg_trg_Get_Player_Units_up_key, Player(0), bj_KEYEVENTTYPE_RELEASE, bj_KEYEVENTKEY_UP )
        endloop     
        exitwhen CountUnitsInGroup(udg_UnitsToMove) == 0
        local unit u = (FirstOfGroup(udg_UnitsToMove))         
    endloop   
endfunction

//==== Init Trigger MoveWithArrowKeys ====
function InitTrig_MoveWithArrowKeys takes nothing returns nothing
    set gg_trg_MoveWithArrowKeys = CreateTrigger()
    //call TriggerRegister__(gg_trg_MoveWithArrowKeys, )
    call TriggerAddCondition(gg_trg_MoveWithArrowKeys, Condition(function Trig_MoveWithArrowKeys_Conditions))
    call TriggerAddAction(gg_trg_MoveWithArrowKeys, function Trig_MoveWithArrowKeys_Actions)
endfunction
I know this might sound like a nooby problem, but can sumone plz help me and tell me what's wrong with my JASS??????!!!!!
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
1- Welcome to the Hive Workshop. Please Introduce yourself to hive
2- Sorry but there is nothing right with this code most of it is wrong
Even if you get it working it will crash the game I guess
3- Open a Different Thread to get help with this way your help call can be noticed more by people
 
According to THW rules, you can respond to a thread in order to give a suggestion and to help, the content of your post must be directly bounded with the threads problem ... it's just like the tutorial rules.
Therefore you can not created your own thread inside someone else's thread in order to get help or attention, you have to create your own thread.

All in THW rules =) i actually had to read some of those because of my icons tutorial lol ..
 
Ya, JASS is a new world, it's ok if you feel frustrated at first. You have a long way to learn how to JASS. All program languages are difficult in start, but once you understand them, there is no telling what you can do.

Learn JASS is a great idea, and you should grab the chance while you still can.
Why use GUI when you can use JASS ?

THW strongly recommends and encourages people like you to learn JASS, and if you need our help, just create your own thread. We are willing to help you, as long as you use our community withing the rules.

Don't give up. Don't you ever give up, the hardest things on life are the best things, they are hard to get because it are just too good. It's liema test, that we have to pass to get them. THW is that test, JASS is your objective, so what are you waiting for ??? Gon on and get it !
 
Status
Not open for further replies.
Top