--------------------------------------------------------------------------------------------------------
Mario Variable Set
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Set Mario_Player[1] = Mario (regular) 0001 <gen>
--------------------------------------------------------------------------------------------------------
Jump
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Jump
(Owner of (Casting unit)) Equal to Player 1 (Red)
Actions
Custom script: local unit udh_Jump
Trigger - Turn off (This trigger)
Set Jumping_On_Kill = 1
Unit - Replace (Triggering unit) with a Mario (jumping) using The old unit's relative life and mana
Set Jump = (Last replaced unit)
Set Mario_Player[(Player number of (Owner of (Triggering unit)))] = (Last replaced unit)
Animation - Change Jump flying height to 200.00 at 300.00
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
JumpRight Equal to 1
Then - Actions
Set JumpCheck = 1
Unit - Order Mario_Player[(Player number of (Owner of (Triggering unit)))] to Move To ((Position of Mario_Player[(Player number of (Owner of (Triggering unit)))]) offset by 1000000000.00 towards 0.00 degrees)
Else - Actions
Set JumpCheck = 1
Unit - Order Mario_Player[(Player number of (Owner of (Triggering unit)))] to Move To ((Position of Mario_Player[(Player number of (Owner of (Triggering unit)))]) offset by 100000000.00 towards 180.00 degrees)
Wait 1.00 seconds
Animation - Change Jump flying height to 0.00 at 300.00
Unit - Replace Jump with a Mario (regular) using The old unit's relative life and mana
Set Mario_Player[(Player number of (Owner of (Triggering unit)))] = (Last replaced unit)
Set JumpCheck = 0
Wait 1.00 game-time seconds
Set Jumping_On_Kill = 0
Trigger - Turn on (This trigger)
--------------------------------------------------------------------------------------------------------
Press Left
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Set LEFT[(Player number of (Triggering player))] = 1
Set JumpLeft = 1
Set JumpRight = 0
Trigger - Run Go Left <gen> (ignoring conditions)
--------------------------------------------------------------------------------------------------------
Press Right
Events
Player - Player 1 (Red) Presses the Right Arrow key
Conditions
Actions
Set RIGHT[(Player number of (Triggering player))] = 1
Set JumpLeft = 0
Set JumpRight = 1
Trigger - Run Go Right <gen> (ignoring conditions)
--------------------------------------------------------------------------------------------------------
Stop
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
JumpCheck Equal to 0
DOWN Equal to 0
RIGHT[(Integer A)] Equal to 0
LEFT[(Integer A)] Equal to 0
UP[(Integer A)] Equal to 0
Then - Actions
Unit - Order Mario_Player[(Integer A)] to Stop
Else - Actions
Do nothing
--------------------------------------------------------------------------------------------------------
Go Left
Events
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (LEFT[(Integer A)] Equal to 1) then do (Unit - Order Mario_Player[(Integer A)] to Move To ((Position of Mario_Player[(Integer A)]) offset by 9999999.00 towards 180.00 degrees)) else do (Do nothing)
--------------------------------------------------------------------------------------------------------
Go Right
Events
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (RIGHT[(Integer A)] Equal to 1) then do (Unit - Order Mario_Player[(Integer A)] to Move To ((Position of Mario_Player[(Integer A)]) offset by 9999999.00 towards 0.00 degrees)) else do (Do nothing)
--------------------------------------------------------------------------------------------------------
Release Left
Events
Player - Player 1 (Red) Releases the Left Arrow key
Conditions
Actions
Set LEFT[(Player number of (Triggering player))] = 0
--------------------------------------------------------------------------------------------------------
Release Right
Events
Player - Player 1 (Red) Releases the Right Arrow key
Conditions
Actions
Set RIGHT[(Player number of (Triggering player))] = 0
That all has to do with movement and jumping... it works offline perfectly fine but when you host on bnet or play single player on bnet it doesnt work, it goes all wierd.
Mario Variable Set
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Set Mario_Player[1] = Mario (regular) 0001 <gen>
--------------------------------------------------------------------------------------------------------
Jump
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Jump
(Owner of (Casting unit)) Equal to Player 1 (Red)
Actions
Custom script: local unit udh_Jump
Trigger - Turn off (This trigger)
Set Jumping_On_Kill = 1
Unit - Replace (Triggering unit) with a Mario (jumping) using The old unit's relative life and mana
Set Jump = (Last replaced unit)
Set Mario_Player[(Player number of (Owner of (Triggering unit)))] = (Last replaced unit)
Animation - Change Jump flying height to 200.00 at 300.00
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
JumpRight Equal to 1
Then - Actions
Set JumpCheck = 1
Unit - Order Mario_Player[(Player number of (Owner of (Triggering unit)))] to Move To ((Position of Mario_Player[(Player number of (Owner of (Triggering unit)))]) offset by 1000000000.00 towards 0.00 degrees)
Else - Actions
Set JumpCheck = 1
Unit - Order Mario_Player[(Player number of (Owner of (Triggering unit)))] to Move To ((Position of Mario_Player[(Player number of (Owner of (Triggering unit)))]) offset by 100000000.00 towards 180.00 degrees)
Wait 1.00 seconds
Animation - Change Jump flying height to 0.00 at 300.00
Unit - Replace Jump with a Mario (regular) using The old unit's relative life and mana
Set Mario_Player[(Player number of (Owner of (Triggering unit)))] = (Last replaced unit)
Set JumpCheck = 0
Wait 1.00 game-time seconds
Set Jumping_On_Kill = 0
Trigger - Turn on (This trigger)
--------------------------------------------------------------------------------------------------------
Press Left
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Set LEFT[(Player number of (Triggering player))] = 1
Set JumpLeft = 1
Set JumpRight = 0
Trigger - Run Go Left <gen> (ignoring conditions)
--------------------------------------------------------------------------------------------------------
Press Right
Events
Player - Player 1 (Red) Presses the Right Arrow key
Conditions
Actions
Set RIGHT[(Player number of (Triggering player))] = 1
Set JumpLeft = 0
Set JumpRight = 1
Trigger - Run Go Right <gen> (ignoring conditions)
--------------------------------------------------------------------------------------------------------
Stop
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
JumpCheck Equal to 0
DOWN Equal to 0
RIGHT[(Integer A)] Equal to 0
LEFT[(Integer A)] Equal to 0
UP[(Integer A)] Equal to 0
Then - Actions
Unit - Order Mario_Player[(Integer A)] to Stop
Else - Actions
Do nothing
--------------------------------------------------------------------------------------------------------
Go Left
Events
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (LEFT[(Integer A)] Equal to 1) then do (Unit - Order Mario_Player[(Integer A)] to Move To ((Position of Mario_Player[(Integer A)]) offset by 9999999.00 towards 180.00 degrees)) else do (Do nothing)
--------------------------------------------------------------------------------------------------------
Go Right
Events
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (RIGHT[(Integer A)] Equal to 1) then do (Unit - Order Mario_Player[(Integer A)] to Move To ((Position of Mario_Player[(Integer A)]) offset by 9999999.00 towards 0.00 degrees)) else do (Do nothing)
--------------------------------------------------------------------------------------------------------
Release Left
Events
Player - Player 1 (Red) Releases the Left Arrow key
Conditions
Actions
Set LEFT[(Player number of (Triggering player))] = 0
--------------------------------------------------------------------------------------------------------
Release Right
Events
Player - Player 1 (Red) Releases the Right Arrow key
Conditions
Actions
Set RIGHT[(Player number of (Triggering player))] = 0
That all has to do with movement and jumping... it works offline perfectly fine but when you host on bnet or play single player on bnet it doesnt work, it goes all wierd.


