Jump to content

Scripting help


Ravelys

Recommended Posts

:wallbash: im new to modding (this is actually my first mod for fallout 3) and im having trouble with scripting.

If someone has a guide on scripting or can give me and example script that will help me then i will be very gratefull

 

:thanks:, Ravelys.

 

----------------------------------------------------------------------------------------------------------------------------------------------------

VAULT 19

 

This is the mod im making. It's main purpose is to make a new vault that has a couple of quests, a good backstory etc.

 

THE STORY

 

The story of vault 19 is that Vault-Tec was commisioned by the Nuka cola company to make them a private vault where their top scientists were housed. Unfortuanatly some of the scientists decided to open the vault early and were killed however most of the vault is still fine and the survivors from this catastrophe continued work. But they now need either new parts or someone who is able to repair the old ones, so they sent out one of the men commisioned to be security out into the wastes to send out a ticket...a nuclear ticket, that invited the owner to come to the vault and see the factory.

 

Tell me what you think of the story and when its finished i will upload it onto www.fallout3nexus.com

If you want to edit it send me an email at this address: [email protected]

Chances are i'll let you edit it if you put in the readme the link to the download and say its based on my mod.

Link to comment
Share on other sites

Hey ya i can help you this is a simple script i just roat.

 

 

scn helpscript ;this is the first thing you need in makeing a simple Script

;you will need to Declare Variables like
short
long
float
; refs im still geting the hang of and dont understand fully
ref

;Exaple of made up variable
short IsIn
short As
short Monkey

; now your going to need something to run those variables in, you need a blocktype like

Begin GameMode
Begin ScriptEffectStart
Begin AddOn

; now you need some conditions for your Variables to run
     if ( Player == 1 )
   ; you can add to this like this and ADD or OR Them exaple
     if ( Player == 1 )  &&  ( Monkey == 1 ) ; i just said if player and Monkey are ment as conditions do something
     if ( Player == 1 )  ll  ( Monkey == 1 ) ;but i can also do it this way if i only one of them meet the conditions to do something


;so my script can look like this

     if ( Monkey == 1 )
           set monkey to 2
           if ( Player == 1 )
                 set Monkey to 4
                 set IsIn to 3
                 set Player to 2
                 set As to 1
                 ShowMessageBox "Awh That Hurt"

; now endif comes after every if      
           endif
      endif
     
END



 

 

Now you see what i did in that script i can now get the variables from that script and use them in other scripts too like the Montey 4 IsIn 3 Player 2 As 1 heck i can even see if that message played "Awh That Hurt" LOL

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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