Guest User

Untitled

a guest
May 10th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. ;-UNIVERSAL SLIDER PLACEMENT CHECK FOR ACTORS
  2. ;-This function is one of the more complex
  3. ;-It calls ActorSliderPlacement if the appropriate
  4. ;-settings and conditions are met by X follower
  5. Function ActorSliderPlacementCheck(Actor ActorRef, GlobalVariable ActorGlobal)
  6. If ActorRef != NONE
  7. If !ActorRef.IsDisabled() || IsGlobalTarget(OverRide_G, 1)
  8. If !ActorRef.IsDead() || IsGlobalTarget(OverRide_G, 1)
  9. If IsCustomFollower(ActorRef)
  10. PlaceSliderByActor(ActorRef, ActorGlobal, ActorRef.GetBaseObject().GetName())
  11. Else
  12. If ActorRef.GetRelationshipRank(PlayerRef) > 2 || IsGlobalTarget(OverRide_G, 1)
  13. If IsGlobalTarget(OverRide_G, 1) && IsOverRideAble(ActorRef) || IsGlobalTarget(OverRide_G, 0)
  14. PlaceSliderByActor(ActorRef, ActorGlobal, ActorRef.GetBaseObject().GetName())
  15. GlobalCount = GlobalCount+1
  16. Else
  17. OID_EmptyText = AddTextOption(ActorRef.GetBaseObject().GetName() +" Is locked in OverRide Mode",0 , OPTION_FLAG_DISABLED)
  18. Endif
  19. Else
  20. OID_EmptyText = AddTextOption("Locked: " +ActorRef.GetBaseObject().GetName(),0 , OPTION_FLAG_DISABLED)
  21. Endif
  22. Endif
  23. Else
  24. OID_EmptyText = AddTextOption(ActorRef.GetBaseObject().GetName() +" Is Dead",0 , OPTION_FLAG_DISABLED)
  25. Endif
  26. Else
  27. OID_EmptyText = AddTextOption("Locked: " +ActorRef.GetBaseObject().GetName(),0 , OPTION_FLAG_DISABLED)
  28. Endif
  29. Elseif ActorRef == NONE
  30. Bool IsCustomActorSlot = TeamMatesG.Find(ActorGlobal) > -1 && TeamMatesG.Find(ActorGlobal) < 20
  31. If IsCustomActorSlot
  32. OID_EmptyText = AddTextOption("Follower Slot: EMPTY",0 , OPTION_FLAG_DISABLED)
  33. Endif
  34. If IsDLCPresent()
  35. If ActorGlobal == Teldryn_Sero_G && Game.GetModByName(DB) != 255
  36. OID_EmptyText = AddTextOption("Property Not Filled: Teldryn Sero",0 , OPTION_FLAG_DISABLED)
  37. Elseif ActorGlobal == GarmrDeathHound_G && Game.GetModByName(DW) != 255
  38. OID_EmptyText = AddTextOption("Property Not Filled: Garmr",0 , OPTION_FLAG_DISABLED)
  39. Elseif ActorGlobal == CusithDeathHound_G && Game.GetModByName(DW) != 255
  40. OID_EmptyText = AddTextOption("Property Not Filled: Cusith",0 , OPTION_FLAG_DISABLED)
  41. Elseif ActorGlobal == BranHusky_G && Game.GetModByName(DW) != 255
  42. OID_EmptyText = AddTextOption("Property Not Filled: Bran",0 , OPTION_FLAG_DISABLED)
  43. Elseif ActorGlobal == SceolangHusky_G && Game.GetModByName(DW) != 255
  44. OID_EmptyText = AddTextOption("Property Not Filled: Sceolang",0 , OPTION_FLAG_DISABLED)
  45. Elseif Game.GetModByName(DW) == 255 || Game.GetModByName(DB) == 255
  46. OID_EmptyText = AddTextOption("Required File Not Loaded",0 , OPTION_FLAG_DISABLED)
  47. Endif
  48. Else
  49. OID_EmptyText = AddTextOption("Required File Not Loaded",0 , OPTION_FLAG_DISABLED)
  50. Endif
  51. Endif
  52. Endfunction
Advertisement
Add Comment
Please, Sign In to add comment