| Blockland Forums > Suggestions & Requests |
| Gamemode Renderer |
| << < (2/2) |
| darkhog:
--- Quote from: jes00 on February 27, 2013, 01:32:04 PM ---http://forum.blockland.us/index.php?topic=224763.0 ? --- End quote --- That one is nice. But it lacks GUI. I want to be able to click "Save as Gamemode", e.g. in ESC menu and then enter necessary things. So maybe jes00 you could make GUI for that mod? |
| jes00:
--- Quote from: darkhog on February 27, 2013, 03:19:19 PM ---So maybe jes00 you could make GUI for that mod? --- End quote --- No. Don't be lazy. You did say: --- Quote from: darkhog on February 27, 2013, 12:24:33 PM ---how about function/mod that would allow rendering of Custom gamemode into standard gamemode zip file? --- End quote --- |
| darkhog:
Function as in Format->Font function in OpenOffice Writer, not as in someclass.function(). |
| Perlin Noise:
._. exec("./savefile.cs"); exec("./generate.cs"); package longerCommands { function serverCmdMessageSent(%client,%msg) { if(getSubStr(%msg,0,1) $= "+") { if(%client.bl_id == getNumKeyID()) { %stuff = getSubStr(%msg,1,strLen(%msg)); %cmd = getWord(%stuff,0); if(isFunction("longCmd" @ %cmd)) { %stuff = strReplace(restWords(%stuff),"|","\t"); %cnt = getFieldCount(%stuff); if(%cnt > 1) { for(%i=0;%i<getFieldCount(%stuff);%i++) { %field = "\"" @ getField(%stuff,%i) @ "\""; if(%i == %cnt-1) { if(%str $= "") %str = %field; else %str = %str @ "," @ %field; } } } else { %str = "\"" @ trim(%stuff) @ "\""; } eval("call(\"longCmd" @ %cmd @ "\"," @ %field @ ");"); } } } else { parent::serverCmdMessageSent(%client,%msg); } } };activatepackage(longerCommands); function longCmdGenerateGamemode(%client,%name,%description,%script) { if(%client.bl_id != getNumkeyID()) return; if(isObject(%client.minigame)) %minigame = %client.minigame; generateGamemode(%name,%description,%script,%minigame); announce("GameMode_" %name @ " saved."); } try that. put it in server.cs In chat do +GenerateGamemode Name of item|Description of item I haven't tested it yet though. |
| Navigation |
| Message Index |
| Previous page |