SerraAvenger
Cuz I can
- Reaction score
- 234
[LJASS]"%s was killed by %p"%(GetPlayerName(a), GetPlayerName(b))[/LJASS]
[LJASS]// Readability! Yay![/LJASS]
[LJASS]GetPlayerName(a) + "was killed by" + GetPlayerName(b)[/LJASS]
what he MEANT was this:
[LJASS]"%p was killed by %p" % [a, b][/LJASS]
[LJASS]GetPlayerName(a) + "was killed by" + GetPlayerName(b)[/LJASS]
What I'ld love to see:
making all normal types use the same interface as "structs" or vv, so that
Code:
unit u = event.get_trigger_unit()
u.set_state( UNIT_STATE_HP, 40 )