object oReaver = UT_GetNearestCreatureByTag(oLeader,"reaver");
WR_SetFollowerState(oReaver, FOLLOWER_STATE_ACTIVE);
AddAbilityEx(oReaver,3,1);//Critical Strike
The problem is, the ability does not show up. Now, if I put that last line in a separate script and trigger that, the ability gets added. I tried using CommandWait() between adding the party member and adding the ability, but that did not help. Any ideas for how to get this all to go off at once?
On a somewhat related note, I tried to move the AddAbility line into a separate function in the script.
void main(){
//stuff
addAbilities();
}
void addAbilities(){
//stuff
}
But the compiler tells me that addAbilities is an unidentified identifier. How do I get that to work?
Modifié par FergusM, 11 février 2010 - 04:30 .





Retour en haut






