lh2705
Just another Helper
- Reaction score
- 111
can sumbody tell me the difference?
also how do you put these type of variables in a gui trigger?
also how do you put these type of variables in a gui trigger?
Custom Script: local <Varibale Type> udg_<Variable Name>
Events
Unit - A unit enters Region 002 <gen>
Conditions
Actions
Set Unit_Var = (Entering unit)
Set Point_Var = Center of Region 001 <gen>
Set Player_var = Owner of (Entering unit)
Unit - Order Unit_Var to Attack-Move to Point_Var
Player - Add 10 gold to Player_Var current gold
Events
Unit - A unit enters Region 002 <gen>
Conditions
Actions
Custom script: local unit u = GetEnteringUnit()
Custom script: local location p = GetRectCenter(gg_rct_Region_001)
Set Player_var = Owner of (Entering unit)
Custom script: call IssuePointOrderLocBJ( u, "attack", p )
Player - Add 10 gold to Player_Var current gold