Help With Creating A System

Status
Not open for further replies.
I have attempted many times in creating a duel system, where it takes two random players from different forces. Unfortunately, I keep failing. So, can anyone help me get this duel system started or link to a system made already? The real problem that I am having is how to take two random players' units and move them.

Perhaps, I should show you what I have done thus far.

  • DS Begins
    • Events
      • Time - DuelTimer expires
    • Conditions
    • Actions
      • Game - Display to (All players) the text: Two have been chose...
      • Countdown Timer - Destroy DuelTimerWindow
      • Set bDuel = True
        • Do Multiple ActionsFor each (Integer i) from 1 to 3, do (Actions)
          • Loop - Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Dueler1 Equal to (==) (Player(i))
              • Then - Actions
                • Set Team1Hero = i
              • Else - Actions
      • Set Team1Dueler = Heroes[Team1Hero]
      • Unit - Move Team1Dueler instantly to DuelerPosition1
      • Custom script: call RemoveLocation (udg_DuelerPosition1)
        • Do Multiple ActionsFor each (Integer i) from 7 to 9, do (Actions)
          • Loop - Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Dueler2 Equal to (==) (Player(i))
              • Then - Actions
                • Set Team2Hero = i
              • Else - Actions
      • Set Team2Dueler = Heroes[Team2Hero]
      • Unit - Move Team2Dueler instantly to DuelerPosition2
      • Custom script: call RemoveLocation (udg_DuelerPosition2)
 
first you need to specify a unit each player controlls put it in a unit variable array Units[ ]
then you need to specify forces for example players 1-5 are in force 1 and players 6-10 are in force 2
then do this:
when the duel starts
move Units[Random number between 1 and 5]
move Units[Random number between 6 and 10]

move them to the arena
 
Status
Not open for further replies.
Back
Top