Posts: 140
Threads: 9
Joined: Jun 2010
I'm trying to make a script that will slowly raise the waterlevel. This is what i have tried to use but it doesnt work.
alias waterlevelup [
[edittoggle]
[waterlevel (+ $waterlevel 1)]
[edittoggle]
sleep 10000 [waterlevelup]
]
Please help
Posts: 100
Threads: 6
Joined: Jun 2010
02 Jul 10, 03:11AM
(This post was last modified: 02 Jul 10, 03:12AM by R4zor.)
If it worked that will end up disastrous. Luckily, it won't work. Where are you trying to accomplish this? In your map cfg? Or for every map?
Posts: 140
Threads: 9
Joined: Jun 2010
I don't want it to be permanent, just a one time thing. And i got it working anyways. Just that now the water starts from -128 and i have to wait for it to get higher...
I got it working with:
alias waterlevelup [
[edittoggle]
alias test 1
alias newwater (+ $waterlevel $test)
waterlevel $newwater
[edittoggle]
sleep 10000 [waterlevelup]
If you can help me get it so it wont go down to -128 when it starts then that would be greatly appreciated.
Posts: 140
Threads: 9
Joined: Jun 2010
Nvm i got it completely working
Posts: 27
Threads: 1
Joined: Jun 2010
(02 Jul 10, 06:12PM)SplatZ Wrote: Nvm i got it completely working
SplatZ what is it for? xD
Posts: 140
Threads: 9
Joined: Jun 2010
(02 Jul 10, 08:31PM)|FmC|Aqua_3m Wrote: SplatZ what is it for? xD
It's slowly raises the waterlevel of a map. I'm gnna try to make a minigame out of it that will time how long you can run around without getting hit by the water.
Posts: 951
Threads: 23
Joined: Jun 2010
Well if you could use bukz dynamic settings then i suppose... epicness
Posts: 1,331
Threads: 44
Joined: Jun 2010
Paste the working script here if you don't mind, maybe others would like to try it out/mod your script for other purposes.
Posts: 140
Threads: 9
Joined: Jun 2010
03 Jul 10, 02:03PM
(This post was last modified: 03 Jul 10, 02:04PM by SplatZ.)
Before I give you the script remember that jumping will be messed up because of the eddittoggle. Also remember that this can only be used offline or in coop edit mode. And if used in coop edit mode then other people will not see the water like you do because assault cube only shows changes in local waterlevel to you unless you send them the map.
alias waterlevelup [
waterlevel -10
[waterlevelup1]]
alias waterlevelup1 [
[edittoggle]
alias test 1
alias newwater (+ $waterlevel $test)
waterlevel $newwater
[edittoggle]
sleep 900 [waterlevelup1]]
Posts: 3,780
Threads: 33
Joined: Jun 2010
04 Jul 10, 06:48PM
(This post was last modified: 04 Jul 10, 06:48PM by V-Man.)
alias "gema" [
(mode 1);
(map $arg1);
(alias mapstartonce [waterlevelup])]