The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Will this script work?

General help and troubleshooting.
Post Reply
EvilLordSaxon
Posts: 7
Joined: Tue Jul 02, 2013 10:31 pm

Will this script work?

Post by EvilLordSaxon » Sat Oct 10, 2015 5:01 pm

I am working on a mod that will build a new casino in searchlight over a number of days after the player has completed a quest to close the radiation canisters in the firehouse.  I was hoping to get a pro tip on this script, i.e. "will it work", the examples I have seen with staged timers have all use GetSecondsPassed instead of GameDaysPassed.


 


scn zzSearchlightTimer



Float timer

Short Day3

Short Day15

Short DoOnce

short Casino



Begin Gamemode



If  getstage Quest >= 100 && (DoOnce == 0)

    Set timer to GameDaysPassed + 30


    Set DoOnce to 1

Endif



;enables foundation and guards

if (timer == GameDaysPassed - 3) && (Day3 == 0)

    xxxxxx.enable

    set Day3 to 1

endif



;enables casino exterior

if (timer == GameDaysPassed - 15) && (Day15 == 0)

    xxxxx.enable

    Set Day15 to 1

endif



;opens casino for business

If (timer == GameDaysPassed - 30) && (Casino == 0)

    xxxxx.enable

    Set Casino to 1

Endif



End


You do not have the required permissions to view the files attached to this post.

JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

I would assume yes, it should

Post by JaxFirehart » Sat Oct 10, 2015 7:48 pm

I would assume yes, it should work.



EvilLordSaxon
Posts: 7
Joined: Tue Jul 02, 2013 10:31 pm

Thanks

Post by EvilLordSaxon » Sun Oct 11, 2015 12:14 am

Thanks



Post Reply