Jump to content

Script question


SpeedyB64

Recommended Posts

Posted

I have seen this in scripting. When one script changes the variable in another script, I saw this in the arena scripting in the oblivion cs. I am working on an arena for fallout and am basing my scripts on how theirs work.

 

Here is an example:

 

 

  Quote
; stops combat if player disqualified

if Arena.Disqualified == 2

Set Arena.Disqualified to 3

player.scaonactor ; stops all combat against player

set ArenaAggression.KickedOut to ArenaAggression.KickedOut+1

combatant1.SetActorValue "Aggression" , 0

combatant1.StopCombat Player

combatant2.SetActorValue "Aggression" , 0

combatant2.StopCombat Player

combatant3.SetActorValue "Aggression" , 0

combatant3.StopCombat Player

ArenaBoarRef.StopCombat

combatant1.StopCombat ArenaBoarRef

combatant2.StopCombat ArenaBoarRef

combatant3.StopCombat ArenaBoarRef

Playsound "AMBArenaCrowdBoo"

 

endif

 

The "Set Arena.Disqualified to 3" line changes a variable in another script, how do I do that?

Posted
Figured it out! In the line "Set Arena.Disqualified to 3" the "Arena" is the quest the script is attached to.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...