Lightstalker
New Member
- Reaction score
- 55
I converted a few triggers from GUI to JASS and now I am rewriting them in vJASS, except I don't know what to fill in for some of the natives.
1) BJ:
Native (according to jasshelper):
How does that tell WC3 to ally the players
2) BJ:
Native (for IntegerTertiaryOp):
How does that work?
3) BJ:
Native:
In the native, what am I supposed to fill in for ``targetWidget``?
1) BJ:
JASS:
call SetPlayerAllianceStateBJ( ConvertedPlayer(GetForLoopIndexA()), Player(5), bj_ALLIANCE_ALLIED )
Native (according to jasshelper):
JASS:
if p != p then
return
endif
How does that tell WC3 to ally the players
2) BJ:
JASS:
call SetPlayerState(Player(PLAYER_NEUTRAL_AGGRESSIVE), PLAYER_STATE_NO_CREEP_SLEEP, IntegerTertiaryOp(true, 0, 1))
Native (for IntegerTertiaryOp):
JASS:
if flag then
return valueA
else
return valueB
endif
How does that work?
3) BJ:
JASS:
call IssueTargetOrderBJ( GetLastCreatedUnit(), "thunderbolt", GetSoldUnit() )
Native:
JASS:
call IssueTargetOrder(dummy, "thunderbolt", targetWidget)
In the native, what am I supposed to fill in for ``targetWidget``?