- Joined
- Aug 4, 2013
- Messages
- 55
i starting to make RPG map but i'm stuck with laggy problem, can some1 test my map i dont know why the game start laggy after a couple of quest i take..
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.



Set location = (position of (entering unit) offset by -5 towards *angle*)
Set loc1 = (Position of (entering unit))
Set loc2 = loc1 offset by *range* towards *angle*
... do your actions....
Custom script: call RemoveLocation(udg_loc1)
Custom script: call RemoveLocation(udg_loc2)
Inventory Remove

Events


Unit - A unit Is issued an order targeting an object


Unit - A unit Is issued an order targeting a point

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Owner of (Ordered unit)) Equal to Player 1 (Red)



Then - Actions




Wait 0.10 seconds




Unit - Move Backpack 0032 <gen> instantly to (Center of Inventory <gen>)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Owner of (Ordered unit)) Equal to Player 2 (Blue)



Then - Actions




Wait 0.10 seconds




Unit - Move Backpack 0034 <gen> instantly to (Center of Inventory <gen>)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Owner of (Ordered unit)) Equal to Player 3 (Teal)



Then - Actions




Wait 0.10 seconds




Unit - Move Backpack 0031 <gen> instantly to (Center of Inventory <gen>)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Owner of (Ordered unit)) Equal to Player 4 (Purple)



Then - Actions




Wait 0.10 seconds




Unit - Move Backpack 0030 <gen> instantly to (Center of Inventory <gen>)



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Owner of (Ordered unit)) Equal to Player 5 (Yellow)



Then - Actions




Wait 0.10 seconds




Unit - Move Backpack 0033 <gen> instantly to (Center of Inventory <gen>)



Else - Actions
ini

Events


Map initialization

Conditions

Actions


Set Backpack[1] = Backpack 0001 <gen> //Player 1 (red)'s backpack unit saved into this variable


Set Backpack[2] = Backpack 0002 <gen> //Player 2 (blue)'s backpack unit


Set Backpack[3] = Backpack 0003 <gen>


Set Backpack[4] = Backpack 0004 <gen>


Set Backpack[5] = Backpack 0005 <gen>
Backpack removal

Events


Unit - A unit Is issued an order targeting an object


Unit - A unit Is issued an order targeting a point

Conditions


(Player number of (Triggering player)) Greater than or equal to 1


(Player number of (Triggering player)) Less than or equal to 5

Actions


Set loc = (Center of Inventory <gen>)


Unit - Move Backpack[(Player number of (Triggering player))] instantly to loc


Custom script: call RemoveLocation(udg_loc)


