• 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.

[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: 102
Level 13
Joined
May 11, 2008
Messages
1,198
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.
 
Level 13
Joined
May 11, 2008
Messages
1,198
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?
 
Level 8
Joined
Oct 31, 2010
Messages
238
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.
 
Level 9
Joined
Nov 3, 2010
Messages
448
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:
 
Level 8
Joined
Oct 31, 2010
Messages
238
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.
 
Level 8
Joined
Oct 31, 2010
Messages
238
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

  • War of Wrath 1.0.w3x
    5.9 MB · Views: 39
Level 9
Joined
Nov 3, 2010
Messages
448
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

  • War of Wrath 1.0.w3x
    5.7 MB · Views: 114
Status
Not open for further replies.
Top