1
2
In response to Manio
|
|
If I'm not mistaken, Entered() would only be called if the player moved. You'll have to have to check for mobs (players) in the turf's contents variables as it's changed to lava.
|
In response to Koshigia
|
|
How would one accomplish this?
|
Dale, you do realize that DM doesn't require block statements or semicolons right? I know a lot of people with Java knowledge tend to do it as habit, but I wanted to point out that it's not necessary.
Anyway... do mob/player/proc/death() |
In response to Unwanted4Murder
|
|
So, like this?
var{lava_time=0.09;} //time modifier. 0.5 = 30 seconds. If so, these errors keep popping. loading The Floor Is Always Lava.dme objects.dm:20:error: M.client: undefined var objects.dm:21:error: M.death: undefined var objects.dm:20:warning: if: if statement has no effect The Floor Is Always Lava.dmb - 2 errors, 1 warning |
In response to Manio
|
|
you have a little syntax error here.
... should look like this: ... |
In response to Koshigia
|
|
Did just that and now it's giving me the inconsistent indentation error for bottom two lines of code.
|
Here is your finalized code for your complete game, practically haha.
var{lava_time=0.09;} //time modifier. 0.5 = 30 seconds. Modify to your liking. |
In response to Unwanted4Murder
|
|
Yeah I know, I just have the tendency to do it because I keep alternating between PHP, C# and Java, so yeah just a force of habit haha.
|
In response to Ssj4justdale
|
|
The only issue is now lava shows up as black tiles.
|
-.- well you do need to define its icon, icon_state and such.
I'm just too lazy to read what your values where. I've taken care of the complicated part, which wasn't so complicated. Just define these values and you are fine. |
In response to Ssj4justdale
|
|
Nevermind, got it all fixed. Thanks for all the help.
|
Now, what about after all the players die on the server? I'm trying to mess about making it reboot once they all die.
proc alldead is the var that I'm messing with, but I imagine it's going to have to be a bit more indepth than that. |
proc |
In response to Ssj4justdale
|
|
Alright cool, it worked. I know this is a hassle, but it's seriously the last time I'll pester you. But, perhaps make it so the "game"/lava doesn't start until either the Host presses a verb, or after like a 30 second countdown if the host is AWOL?
Again, pretty much the last time and then I can get on with finishing it myself. |
var/game_started=0 Code has not been tested. Best of luck. |
1
2
Just tested everything out, and it all works. The only issue is if a player is standing on a tile as it turns to lava they don't die like the code suggests. They just float ontop of the lava. Tips?
Also maybe help me with spectating too upon death?