[Trigger] whats wrong here?

Status
Not open for further replies.
Level 9
Joined
Nov 3, 2010
Messages
448
i made a map there is an ar mode made by priest...
there are 10 players and only 4 playing .. so 2 computers..
but when i make -ar yellow and orange is in the wrong castle



when you want the full map say it..:goblin_jawdrop:
 

Attachments

  • mh.jpg
    mh.jpg
    108.4 KB · Views: 141
i can't see your set variables trigger. give us that with some comments so we can see what kind of variables you are using.

but i guess you might be using appropriate variables, so that may be unnecessary.

it appears your problem is not that your hero isn't being created, but simply thatyour hero is created at a place that is incorrect.

you need to proofread your triggers before you test them.

you make minor errors like for example. before loop you set a variable. during loop you set the same variable again. i'm not sure what you're trying to do, but my guess is that you do not need the set the variable in the loop.
 
when i make with
must i write all the text in the box or how can i copie it..?

uhmm...you can't do either if you're using gui. you can do both if you use jass, though. in gui you always have to use all those drag boxes... i'll take a look at your map a bit later and see what else is up. i recomment perhaps taking a look at my map or other maps which aren't locked down to see if you can learn something.

btw, do you know about convert to custom text?
 
Yeah, in your trigger, it stated that you create the unit in
(Centre of Gebiet 002 <gen>) where you should set to the variable udg_TempPoint instead.
And the
  • Set Temp_Point = (Triggering Player) Start Location
should be Inside the
  • For Each (Integer A) from 1 to 6 do (Actions)
instead of outside.
 
Yeah, in your trigger, it stated that you create the unit in
(Centre of Gebiet 002 <gen>) where you should set to the variable udg_TempPoint instead.
And the
  • Set Temp_Point = (Triggering Player) Start Location
should be Inside the
  • For Each (Integer A) from 1 to 6 do (Actions)
instead of outside.

i have it like you said the Temp_point in it but it doesnt work yellow and orange move to the wrong castle..:goblin_boom:
 
Okay I will take a look again.

For your all random trigger do this:
  • AllRandom
    • Events
      • Player - Player 1 (Red) types a chat message containing -ar as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off T10 <gen>
      • Unit - Remove Wähler 0050 <gen> from the game
      • Unit - Remove Wähler 0049 <gen> from the game
      • Unit - Remove Wähler 0048 <gen> from the game
      • Unit - Remove Wähler 0046 <gen> from the game
      • Unit - Remove Wähler 0051 <gen> from the game
      • Unit - Remove Wähler 0047 <gen> from the game
      • Unit - Remove Wähler 0003 <gen> from the game
      • Unit - Remove Wähler 0004 <gen> from the game
      • Game - Display to (All players) the text: All Random
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set TempPoint = ((Player((Integer A))) start location)
          • Set Random_Hero = (Random integer number between 1 and Random_Count)
          • Set TempPoint = ((Triggering player) start location)
          • Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at TempPoint facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_TempPoint)
          • Selection - Select (Last created unit) for (Player((Integer A)))
          • Set Random_Data[Random_Hero] = Random_Count
          • Set Random_Count = (Random_Count - 1)
          • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyTrigger(gg_trg_AllRandom)
Shoudl work now.
 
Fixed Player 5-8 AR location.
Fixed Computer also AR a hero problem.
Only users now get to random a hero.

Trigger:
  • AllRandom
    • Events
      • Player - Player 1 (Red) types a chat message containing -ar as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off T10 <gen>
      • Unit - Remove Wähler 0050 <gen> from the game
      • Unit - Remove Wähler 0049 <gen> from the game
      • Unit - Remove Wähler 0048 <gen> from the game
      • Unit - Remove Wähler 0046 <gen> from the game
      • Unit - Remove Wähler 0051 <gen> from the game
      • Unit - Remove Wähler 0047 <gen> from the game
      • Unit - Remove Wähler 0003 <gen> from the game
      • Unit - Remove Wähler 0004 <gen> from the game
      • Game - Display to (All players) the text: ((Name of (Triggering player)) + has choosen all random.)
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Set AR_Point[(Integer A)] = ((Player((Integer A))) start location)
              • Set Random_Hero = (Random integer number between 1 and Random_Count)
              • Set TempPoint = ((Triggering player) start location)
              • Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at AR_Point[(Integer A)] facing Default building facing degrees
              • Selection - Select (Last created unit) for (Player((Integer A)))
              • Set Random_Data[Random_Hero] = Random_Count
              • Set Random_Count = (Random_Count - 1)
              • Custom script: call RemoveLocation(udg_AR_Point[GetForLoopIndexA()])
            • Else - Actions
      • Custom script: call DestroyTrigger(gg_trg_AllRandom)
 

Attachments

now i find another bug:
when i choose hero then i make -ar
i have 2 heroes too..
mabye you can do nothing till the 10 sec( where you can do -ar) are done..
how can i make that
so everyone can write but cant take any hero
till red made -ar or nothing best idea would be with -ap and -ar but that is complecated or?
 

Attachments

Status
Not open for further replies.
Back
Top