User:Taglag

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
I guess you were right, but the wording for that Function, was the very reason why I was not able to get My script to work.
The way it was worded to me sounded like it did not work. So I never tried it.
Perhaps others think in the same way I do...Just a--Taglag 04:21, 26 April 2009 (EDT) thought.

Can't Get Refference on Combat AI[edit | edit source]

  I have tried many things in script trying to get to the point where I can add a usable Short, or ref to the AI that attack me in the game, sOo I can do something useful with them in the script.
  But no matter what I try I can not seem to Get hold of the attacking AI in script.

Please, can sOmeone show me what to do to be able to type something like.

 if (target.GetCombatTarget == player) and the game will actually let me manage the attacking AI.
  here is one of my attempts to script AI.


ScriptName TAGRoughCombat ;THIS GOES ON QUEST RoughCombat short DoOnce short Once short GAT ref target short CombatMode float Timer Begin GameMode if (DoOnce == 0)

       If (Player.GetIsSex female == 1)

set DoOnce to 1

      message "You are a Girl..:)"

Else

      return

endIf endif

if (TagRoughCombat.GetCurrentAIPackage == 5)
  if (DoOnce == 1) 
    if ( TagRoughCombat.GetCombatTarget == player )
         Message"something is attacking you..!"
        set DoOnce to 2
    endif
 endif

endif

endif
if (DoOnce == 1)
if (target.GetCombatTarget == player)
set Target to GetSelf
Message"something is attacking you..!"
set DoOnce to 2
endif
endif

END


 it does not crash, but i can not get control of the AI in script. I hope i have explained this rightly.

I have tried sOo many, left some of my other attemps semicolened out, but i have tried, sOo many different functions it's Really discouraging.. I have done much scripting in Morrowind, and even some here, but this is the first time I have tried to take control of an unknown AI... and I just am Unable to seem to do it.

 Please help me with the proper syntax, or manor in which to do this..

--Taglag 19:55, 25 April 2009 (EDT)

I moved your question here as the Community Portal is only for question regarding the Wiki. I'd suggest you take this to the forums, you'll have a much better chance of getting your question answered there.
--Qazaaq 16:10, 16 May 2009 (EDT)