How do you create a loop with FOSE?

Post » Mon May 16, 2011 10:49 pm

I tryed using fose and loop as a search criteria to find info but you get alot more than you bargain for.

I'm interested in how to create a looping script for a recharging type weapon using fission bateries.


My scripting not that flash did some stuff for morrowind like mana regen via willpower stuff like that.

Wanted to try make Schematic type plans to modify normal energy weapons to regen weapons by using fission batteries and other items.

Would need a script thats "add" a charge to Players inventory every X seconds to a maximum of Y and constantly rechecks the number of charges to see if it needs to recharge.

The fire rate would definately exceed the recharge rate and the weapon would be 1, 2 or 4 Fission bateries heavier in the interest of game balance

If someone could help me out with a sample script or if theres something like this done already point me in the right direction I'd be stoked, Thanks



Wont be back online for a couple of days so if I dont reply please dont be offended
User avatar
Grace Francis
 
Posts: 3431
Joined: Wed Jul 19, 2006 2:51 pm

Post » Tue May 17, 2011 2:24 pm

Check out http://www.cipscis.com/fallout/tutorials/loops.aspx
User avatar
Pat RiMsey
 
Posts: 3306
Joined: Fri Oct 19, 2007 1:22 am

Post » Tue May 17, 2011 4:58 am

I created my Solar Scorcher without having to use FOSE and it works fine.

About every 10 minutes of gameplay, a 'charge' is added to the players inventory. But only if outside, its daylight, and the weapon is equipped. Thus, solar recharging.

You can find the weapon in my http://www.fallout3nexus.com/downloads/file.php?id=13632 mod, along with the script.
User avatar
Rachel Eloise Getoutofmyface
 
Posts: 3445
Joined: Mon Oct 09, 2006 5:20 pm

Post » Tue May 17, 2011 11:38 am

Thanks pkleiss the Label / Goto method looks like what I was looking for will try it out as soon as I get back home.

Thanks WillieSea I will look for a copy of your mod sounds cool
User avatar
Kayla Bee
 
Posts: 3349
Joined: Fri Aug 24, 2007 5:34 pm


Return to Fallout 3