Page 1 of 1

CFG help

Posted: October 11th, 2009, 1:07 am
by rev1
hello i need some help with .cfg files
could you please give me an example script of a:

shop
different order of guis four one person
inventory(in fps)
costum menu buttons
the gui commands like newgui me [hi its me] chat i mean the underlined thing

if youre going to say about C++ or something please give me a full download because the one from the website is in pieces
thanks anyway

Re: CFG help

Posted: October 12th, 2009, 12:04 pm
by rev1
here's a cool script:
newgui Bed [
guitext "do you wanna sleep?" chat
guibar
guibutton "yes, I want to sleep untill night" [skybox amethyst7/starfield]
guibutton "yes, I want to sleep untill day" [skybox loopix/daysky]
guibutton "no"
]
it makes the skybox change is night and day!

Re: CFG help

Posted: October 12th, 2009, 3:47 pm
by kid matthew
cool script can you make me one with a next and a baxk button. :!:

Re: CFG help

Posted: October 13th, 2009, 9:22 am
by rev1
Like this?
newgui Bed [
guitext "do you wanna sleep?" chat
guibar
guibutton "yes, I want to sleep untill night" [skybox amethyst7/starfield]
guibutton "next" [showgui Bed1]
]

newgui Bed1 [
guitext "do you wanna sleep?" chat
guibar
guibutton "yes, I want to sleep untill day" [skybox loopix/daysky]
guibutton "next" [showgui Bed2]
guibutton "Back" [showgui Bed]
]

bewgui Bed2 [
guitext "do you wanna sleep?" chat
guibar
guibutton "No" [cleargui]
guibutton "Back" [showgui Bed1]
]

Re: CFG help

Posted: October 13th, 2009, 11:18 am
by siimvuss
this sure seems interesting... But how can I spawn the thing?? and where do I have to copy the code?

Re: CFG help

Posted: October 13th, 2009, 1:54 pm
by rev1
just print and put in OR copy this in a .txt file and make .txt to .cfg

Re: CFG help

Posted: October 13th, 2009, 4:43 pm
by kid matthew
kind of but sometihng like when you klick next a new gui comes up and more text comes up. do you understand.

Re: CFG help

Posted: October 13th, 2009, 6:50 pm
by kid matthew
I type this


"level_trigger_3" = "showgui bed"
newgui Bed [
guitext "do you wanna sleep?" chat
guibar
guibutton "yes, I want to sleep untill night" [skybox amethyst7/starfield]
guibutton "yes, I want to sleep untill day" [skybox loopix/daysky]
guibutton "no"
]


and i tpye on my model 0 0 11 3 0 0 0 0

I didn't work.

Re: CFG help

Posted: October 17th, 2009, 3:26 am
by rev1
mmbl...
i dont know how ut really works in 2.4, but set the model's level trigger to 3 in your case and trigger type to 1 and bonus radius to whatever you want above 0