Aller au contenu

Photo

Runscript at command line


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Jereniva

Jereniva
  • Members
  • 124 messages

How would you run a script from a command line?

Example, I was test playing, and wanting to push time forward to test fog and light,etc.

I ran "runscript settime(15,0,0,0)" and get back "unsucessful execution of script settime for object Aaron".

 

Or is there a simpler way to just advance time to certain hour within the game?



#2
kevL

kevL
  • Members
  • 4 061 messages

- advances time 1 hr.
rs ga_time_advance(1,0,0,0)

- sets time to 1 am:
rs ga_time_set(1,0,0,0)


  • Jereniva aime ceci

#3
Tchos

Tchos
  • Members
  • 5 054 messages

Did you create a script called "settime"?  Otherwise, since there is no script by that name in the stock scripts, but there is a function by that name, it looks like you're trying to execute a function, not run a script.  You need to run a script that contains the function you want to run.  In this case, there is a script that executes that function, and it's called "ga_time_set"

runscript ga_time_set(15,0,0,0)

  • Jereniva aime ceci

#4
Jereniva

Jereniva
  • Members
  • 124 messages

Kev, and Tchos, big thank you!