- Joined
- Mar 16, 2008
- Messages
- 955
I'm reviewing AI scripts to try and understand how they work.
I see this function in the script and it "takes integer order" but I don't see "order" set anywhere else in the script. Where does this integer get set? Does my question make sense? Can anyone explain this?
Thank you for any ideas.
I see this function in the script and it "takes integer order" but I don't see "order" set anywhere else in the script. Where does this integer get set? Does my question make sense? Can anyone explain this?
JASS:
function SetHero takes integer order, integer heroid returns nothing
if (order == 1) then
set hero_id = heroid
if (heroid == 'H01L') then
set skills1[ 1] = ...
set skills1[ 2] = ...
set skills1[ 3] = ...
...
Thank you for any ideas.
Last edited: