Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

KahjiitRaj

Allies
  • Posts

    5
  • Joined

  • Last visited

Posts posted by KahjiitRaj

  1. **Request**

    Hello everyone. I need a hand with another script. This should be an easy one but I can't seem to figure it out on my own. All I want to do is have two sentence appear in a message box on two different lines.

    I want it to look this this:

    This is the first sentence.

    This is the second sentence.

    Not like this:

    This is the first sentence. This is the second sentence.

    
    Scriptname MessageBoxDescriptionSCR extends ObjectReference
    
    Event onactivate(ObjectReference akActionRef)
    
    Debug.MessageBox("This is the first sentence. This is the second sentence.")
    
    endEvent
    
    

  2. I'm trying to get a script working and could really use a hand from someone with a bit more experience. What I need it to do is to keep track of how many of an object has been found but it need to be able to be applied to different objects. I want it to pop up with a message window and say "You have found object 1", "You have found object 2" etc, until the last one is found when it says "Congratulations! You have found the last Object". The script is a modified version of the "hello world" tutorial script, thats how much of a beginner I am. I've tried adding the script to a few different objects and when each is picked up I receive the first message no matter how many I have already picked up. I'm not sure how to make the count keep track when the script is applied to multiple objects and I will also need to figure a way to make the count remain the same if an object is dropped and/or picked back up again. Thanks in advance for any help!

    Scriptname ObjectCountScript extends ObjectReference  
    
    {Script to keep track of # of objects discovered}
    
    
     int count  ;stores the number of objects discovered
    
    
     Event OnActivate(ObjectReference akActionRef)
    
        count = count + 1
    
    
        if count == 1
    
           Debug.MessageBox("You have discovered your first Hidden Object!")
    
        elseif count == 2
    
           Debug.MessageBox("You have discovered your second Hidden Object!")
    
        else
    
           Debug.MessageBox("Congratulations! You have found them all!")
    
        endif
    
     endEvent

  3. I'm a beginner with scripting but I thought some of you might find this simple script useful and I wanted to contribute something for all the help I've gotten along the way. I've used it for spells and potions but it could also be useful for scripting a particularly difficult boss fight or something.

    Scriptname GodModeScript extends ActiveMagicEffect  
    
    
    ObjectReference property EffectGodMode auto
    
    
    Event OnEffectStart(Actor target, Actor caster)
    
    	Debug.SetGodMode(true)
    
    EndEvent
    
    
    Event OnEffectFinish(Actor target, Actor caster)
    
    	Debug.SetGodMode(false)
    
    EndEvent

×
×
  • Create New...