Results 1 to 6 of 6

Thread: Has anyone ever made an RPG-like campaign?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Anything that isn't 'member' Member Squid's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    596

    Default Re: Has anyone ever made an RPG-like campaign?

    A counter is exactly what it sounds like, it counts something. The while part of a script keeps doing what's inside of the while as long as the condition of the while is met.

    So you might have something like

    while I_TurnNumber <= 100
    count = count + 1
    end while

    so this non-functioning bit of script would increase your counter by one for every year up to an including 100AD.

    -Trait/Ancillary/Building Editor

    "Two things are infinite: the universe and human stupidity;
    and I'm not sure about the universe." -----Albert Einstein

  2. #2

    Default Re: Has anyone ever made an RPG-like campaign?

    Well, I'm looking at the prologue script. It says things like:

    Code:
    		while I_CompareCounter go_to_end_phase = 1
    		end_while
    
    		dismiss_advice
    	
    		while I_AdvisorVisible
    		end_while
    I must be missing something, because all I see is "while something" over and over. Is it saying "while that, dismiss_advice"? The organization of script files is really confusing me.

    What does CompareCounter mean, anyway?

  3. #3
    Anything that isn't 'member' Member Squid's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    596

    Default Re: Has anyone ever made an RPG-like campaign?

    The end while are the key part there:

    Code:
    		while I_CompareCounter go_to_end_phase = 1
    		end_while
    This part says while the counter go_to_end_phase is equal to 1, do nothing, or more precisely wait for the user to do whatever is required to change go_to_end_phase

    note: there is nothing between the while line and the end_while line, which says the while loop does nothing

    Code:
    	
    		dismiss_advice
    once go_to_end_of_phase is no longer 1 it dismisses the advice

    Code:
    	
    		while I_AdvisorVisible
    		end_while
    Again, like the first while it says while I_AdvisorVisible is true (i.e. you the Advisor is visible on screen) do nothing.

    And I_CompareCounter means exactly what is says, compare the counter after me to some other value (in this case the number) using a comparison operator (= or < or > or not in some combination)
    Last edited by Squid; 08-21-2007 at 21:04.

    -Trait/Ancillary/Building Editor

    "Two things are infinite: the universe and human stupidity;
    and I'm not sure about the universe." -----Albert Einstein

  4. #4

    Default Re: Has anyone ever made an RPG-like campaign?

    Ohhh, thanks a lot!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO