- Joined
- Mar 3, 2006
- Messages
- 1,564
While I was learning some vJASS, I stumbled upon this strange thing:
this is what I typed in the trigger:
and the generated script is:
from what I understand private works by adding scopename(random digit)__ , now all I see is the scopename___ (3 underscores) why is that ?
this is what I typed in the trigger:
JASS:
scope human
private function f takes nothing returns nothing
endfunction
endscope
scope nightelf
private function f takes nothing returns nothing
endfunction
endscope
scope orcs
private function f takes nothing returns nothing
endfunction
endscope
scope undead
private function f takes nothing returns nothing
endfunction
endscope
JASS:
// scope human begins
function human___f takes nothing returns nothing
endfunction
// scope human ends
// scope nightelf begins
function nightelf___f takes nothing returns nothing
endfunction
// scope nightelf ends
// scope orcs begins
function orcs___f takes nothing returns nothing
endfunction
// scope orcs ends
// scope undead begins
function undead___f takes nothing returns nothing
endfunction
// scope undead endss