Trigger/scripting question -1 reply

Please wait...

Darth Zion

Hmm...bored

50 XP

11th January 2006

0 Uploads

487 Posts

0 Threads

#1 11 years ago

Is it possible to make a trigger call the save menu? if so, how?




Darth NormaN

Mapper since JK2

50 XP

31st December 2005

0 Uploads

141 Posts

0 Threads

#2 11 years ago

esc-button on your keyboard




Darth Zion

Hmm...bored

50 XP

11th January 2006

0 Uploads

487 Posts

0 Threads

#3 11 years ago

...That wasn't the question, I was wondering if it was possible to bind the call savemenu command to an in-game trigger.




Guest

I didn't make it!

0 XP

 
#4 11 years ago

no it isnt




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#5 11 years ago

The set_menu_screen special table command only lists Mainmenu, ingameMainmenu and ingameLoadmenu.

Unless you succeed in hacking that system one way or another, I wouldn't count on what you are trying to do to be possible. And frankly, I've never seen anything like that in a game, so I'm not really surprised.




stellcat

The one man mod force!

50 XP

29th November 2004

0 Uploads

898 Posts

0 Threads

#6 11 years ago

As SEV said You CAN have a trigger load a menu. Which could have a save game button on it. That is more than possible. I've done it. But then you are getting into custom menus. Hay Sev got a good script for playing a ROQ file at the start of a level? However if you have a following map that looks the same I guess you could still get the kind of feeling you are hoping for. I guess.




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#7 11 years ago
stellcat;3841374Hay Sev got a good script for playing a ROQ file at the start of a level?

This is the (relevant part of) script I've always used:

rem ( "cinematics" ); camera ( /*@CAMERA_COMMANDS*/ FADE, < 0.000 0.000 0.000 >, 1.000, < 0.000 0.000 0.000 >, 1.000, 1 ); set ( /*@SET_TYPES*/ "SET_VIDEO_PLAY", "syndic" ); //(BHVDREM) wait ( 250.000 ); wait ( 150.000 ); set ( /*@SET_TYPES*/ "SET_VIDEO_PLAY", "jk0101_sw" ); //(BHVDREM) wait ( 250.000 ); wait ( 150.000 );

There are a couple of commented waits there, which also signifies the fact those wait values can be ambiguous (in fact the commented wait is copy pasted straight from the Raven script). The last time I talked with Mercenary, he was testing different values for the wait in order to lessen any small flicker that might occur before/after/between the roqs, but that also depends on the speed of the system running the game, I suppose, so it might not be worth the effort in the long run. 150 seems to work fine.

Well, this particular script will first play a custom roq (called syndic in this script as the code is from Syndicate), and then it will play the SW logo and show the text crawl, which has been hard coded to be shown after that jk0101_sw logo thing.

Naturally, this should be the very first thing to be executed by the level.

[/hijack]




Darth Zion

Hmm...bored

50 XP

11th January 2006

0 Uploads

487 Posts

0 Threads

#8 11 years ago

hmm ok so if I swap the contents from the load menu with the save menu or add a save button to the load menu it is possible? I'm gonna give this a try thnx for the info.