You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Single Player Only z Triggers
posted 04 January 2010 04:57 PM EDT (US)   

(Greek river pool painted - altering the softness and sharpness paramteters can have interesting effects. No effect when the paint area option is used. However with paint area on you can do extreme elevation)

My work generally is only focused on multiplayer but I thought I migth release some new exciting stuff for you singleplayer guys who are missing out all the extra stuff. So I am planning to make a set of z triggers that allow greater depth with editor commands such as painting terrain, forest, cliff, water and such and a few other thingn hopefully.

Note terrains need to be input as LOWERCASE or it will not work!




<Effect name="zsPaint Land">
<Param name="SrcObject3" dispName="Change Block" varType="unit">default</Param>
<Param name="s1" dispName="BrushSizeX" varType="stringid">1</Param>
<Param name="s2" dispName="BrushSizeZ" varType="stringid">1</Param>
<Param name="t" dispName="New terrain" VarType="string">snowb</Param>
<Param name="v2" dispName="Brush is square" varType="Bool">true</Param>
<Param name="v" dispName="Trigger Name" varType="stringid">paint1</Param>
<Param name="EventID" dispName="$$22362$$Trigger" varType="event">-1</Param>
<Command>trQuestVarSet("zzzz", trQuestVarGet("zzzz") + 1);</Command>
<Command>if(trQuestVarGet("zzzz") == 1){</Command>
<Command>map("mouse2down","earthquake","");</Command>
<Command>map("mouse1down","earthquake","");</Command>
<Command>subModeEnter("Simulation", "Editor");</Command>
<Command>modeEnter("pregame");</Command>
<Command>modeEnter("Simulation");</Command>
<Command>subModeEnter("Simulation", "Singleplayer");</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>editMode("paintland");</Command>
<Command>if(%v2% == false)uiChangeBrushType("Circular");</Command>
<Command>if(%v2% == true)uiChangeBrushType("Rectangular");</Command>
<Command>uiChangeBrushSize(%s1%,%s2%,1,1);</Command>
<Command>for(i = 0; > 1){}</Command>
<Command>for(j = 0; > 1){}</Command>
<Command>if("%t%" == "grassa"){i = 0; j = 0;}</Command>
<Command>if("%t%" == "grassb"){i = 1; j = 0;}</Command>
<Command>if("%t%" == "grassdirt25"){i = 2; j = 0;}</Command>
<Command>if("%t%" == "grassdirt50"){i = 3; j = 0;}</Command>
<Command>if("%t%" == "grassdirt75"){i = 4; j = 0;}</Command>
<Command>if("%t%" == "cliffgreekb"){i = 5; j = 0;}</Command>
<Command>if("%t%" == "greekroad burnt"){i = 6; j = 0;}</Command>
<Command>if("%t%" == "greekroad burntb"){i = 7; j = 0;}</Command>
<Command>if("%t%" == "gaiacreepa"){i = 8; j = 0;}</Command>
<Command>if("%t%" == "gaiacreepasnow"){i = 9; j = 0;}</Command>
<Command>if("%t%" == "gaiacreepasand"){i = 10; j = 0;}</Command>
<Command>if("%t%" == "gaiacreepb"){i = 11; j = 0;}</Command>
<Command>if("%t%" == "gaiacreepborder"){i = 12; j = 0;}</Command>
<Command>if("%t%" == "gaiacreepbordersnow"){i = 13; j = 0;}</Command>
<Command>if("%t%" == "gaiacreepbordersand"){i = 14; j = 0;}</Command>
<Command>if("%t%" == "savannaha"){i = 15; j = 0;}</Command>
<Command>if("%t%" == "savannahb"){i = 16; j = 0;}</Command>
<Command>if("%t%" == "savannahc"){i = 17; j = 0;}</Command>
<Command>if("%t%" == "savannahd"){i = 18; j = 0;}</Command>
<Command>if("%t%" == "dirta"){i = 19; j = 0;}</Command>
<Command>if("%t%" == "sanda"){i = 20; j = 0;}</Command>
<Command>if("%t%" == "sandb"){i = 21; j = 0;}</Command>
<Command>if("%t%" == "sandc"){i = 22; j = 0;}</Command>
<Command>if("%t%" == "sandd"){i = 23; j = 0;}</Command>
<Command>if("%t%" == "cliffegyptianb"){i = 24; j = 0;}</Command>
<Command>if("%t%" == "sanddirt50"){i = 25; j = 0;}</Command>
<Command>if("%t%" == "sanddirt50b"){i = 26; j = 0;}</Command>
<Command>if("%t%" == "snowa"){i = 27; j = 0;}</Command>
<Command>if("%t%" == "snowb"){i = 28; j = 0;}</Command>
<Command>if("%t%" == "snowgrass25"){i = 29; j = 0;}</Command>
<Command>if("%t%" == "snowgrass50"){i = 30; j = 0;}</Command>
<Command>if("%t%" == "snowgrass75"){i = 31; j = 0;}</Command>
<Command>if("%t%" == "snowsand25"){i = 32; j = 0;}</Command>
<Command>if("%t%" == "snowsand50"){i = 33; j = 0;}</Command>
<Command>if("%t%" == "snowsand75"){i = 34; j = 0;}</Command>
<Command>if("%t%" == "cliffnorseb"){i = 35; j = 0;}</Command>
<Command>if("%t%" == "olympusa"){i = 36; j = 0;}</Command>
<Command>if("%t%" == "olympusb"){i = 37; j = 0;}</Command>
<Command>if("%t%" == "olympusc"){i = 38; j = 0;}</Command>
<Command>if("%t%" == "olympustile"){i = 39; j = 0;}</Command>
<Command>if("%t%" == "tundragrassa"){i = 40; j = 0;}</Command>
<Command>if("%t%" == "tundragrassb"){i = 41; j = 0;}</Command>
<Command>if("%t%" == "tundrarocka"){i = 42; j = 0;}</Command>
<Command>if("%t%" == "tundrarockb"){i = 43; j = 0;}</Command>
<Command>if("%t%" == "marsha"){i = 44; j = 0;}</Command>
<Command>if("%t%" == "marshb"){i = 45; j = 0;}</Command>
<Command>if("%t%" == "marshc"){i = 46; j = 0;}</Command>
<Command>if("%t%" == "marshd"){i = 47; j = 0;}</Command>
<Command>if("%t%" == "marshe"){i = 48; j = 0;}</Command>
<Command>if("%t%" == "marshf"){i = 49; j = 0;}</Command>
<Command>if("%t%" == "egyptianroada"){i = 50; j = 0;}</Command>
<Command>if("%t%" == "greekroada"){i = 51; j = 0;}</Command>
<Command>if("%t%" == "norseroada"){i = 52; j = 0;}</Command>
<Command>if("%t%" == "citytilea"){i = 53; j = 0;}</Command>
<Command>if("%t%" == "citytileatlantis"){i = 54; j = 0;}</Command>
<Command>if("%t%" == "citytileatlantiscoral"){i = 55; j = 0;}</Command>
<Command>if("%t%" == "citytilewaterpool"){i = 56; j = 0;}</Command>
<Command>if("%t%" == "citytilewateredgea"){i = 57; j = 0;}</Command>
<Command>if("%t%" == "citytilewateredgeb"){i = 58; j = 0;}</Command>
<Command>if("%t%" == "citytilewateredgeenda"){i = 59; j = 0;}</Command>
<Command>if("%t%" == "citytilewateredgeendb"){i = 60; j = 0;}</Command>
<Command>if("%t%" == "citytilewateredgeendc"){i = 61; j = 0;}</Command>
<Command>if("%t%" == "citytilewateredgeendd"){i = 62; j = 0;}</Command>
<Command>if("%t%" == "citytilewatercornera"){i = 63; j = 0;}</Command>
<Command>if("%t%" == "citytilewatercornerb"){i = 64; j = 0;}</Command>
<Command>if("%t%" == "citytilewatercornerc"){i = 65; j = 0;}</Command>
<Command>if("%t%" == "citytilewatercornerd"){i = 66; j = 0;}</Command>
<Command>if("%t%" == "hadesbuildable1"){i = 67; j = 0;}</Command>
<Command>if("%t%" == "hadesbuildable2"){i = 68; j = 0;}</Command>
<Command>if("%t%" == "forestfloorpalm"){i = 69; j = 0;}</Command>
<Command>if("%t%" == "forestfloorpine"){i = 70; j = 0;}</Command>
<Command>if("%t%" == "forestfloorpinesnow"){i = 71; j = 0;}</Command>
<Command>if("%t%" == "forestflooroak"){i = 72; j = 0;}</Command>
<Command>if("%t%" == "forestfloorgaia"){i = 73; j = 0;}</Command>
<Command>if("%t%" == "forestfloorsavannah"){i = 74; j = 0;}</Command>
<Command>if("%t%" == "forestfloordeadpine"){i = 75; j = 0;}</Command>
<Command>if("%t%" == "forestfloortundra"){i = 76; j = 0;}</Command>
<Command>if("%t%" == "forestfloormarsh"){i = 0; j = 1;}</Command>
<Command>if("%t%" == "water"){i = 0; j = 2;}</Command>
<Command>if("%t%" == "cliffa"){i = 1; j = 2;}</Command>
<Command>if("%t%" == "cliffgreeka"){i = 2; j = 2;}</Command>
<Command>if("%t%" == "cliffegyptiana"){i = 3; j = 2;}</Command>
<Command>if("%t%" == "cliffnorsea"){i = 4; j = 2;}</Command>
<Command>if("%t%" == "hades3"){i = 5; j = 2;}</Command>
<Command>if("%t%" == "hades5"){i = 6; j = 2;}</Command>
<Command>if("%t%" == "hades6"){i = 7; j = 2;}</Command>
<Command>if("%t%" == "hades7"){i = 8; j = 2;}</Command>
<Command>if("%t%" == "hadescliff"){i = 9; j = 2;}</Command>
<Command>if("%t%" == "hades4"){i = 10; j = 2;}</Command>
<Command>if("%t%" == "blackrock"){i = 11; j = 2;}</Command>
<Command>if("%t%" == "underwaterrocka"){i = 0; j = 3;}</Command>
<Command>if("%t%" == "underwaterrockb"){i = 1; j = 3;}</Command>
<Command>if("%t%" == "underwaterrockc"){i = 2; j = 3;}</Command>
<Command>if("%t%" == "underwaterrockd"){i = 3; j = 3;}</Command>
<Command>if("%t%" == "underwaterrocke"){i = 4; j = 3;}</Command>
<Command>if("%t%" == "underwaterrockf"){i = 5; j = 3;}</Command>
<Command>if("%t%" == "underwatericea"){i = 6; j = 3;}</Command>
<Command>if("%t%" == "underwatericeb"){i = 7; j = 3;}</Command>
<Command>if("%t%" == "underwatericec"){i = 8; j = 3;}</Command>
<Command>if("%t%" == "corala"){i = 9; j = 3;}</Command>
<Command>if("%t%" == "coralb"){i = 10; j = 3;}</Command>
<Command>if("%t%" == "coralc"){i = 11; j = 3;}</Command>
<Command>if("%t%" == "coralc2"){i = 12; j = 3;}</Command>
<Command>if("%t%" == "corald"){i = 13; j = 3;}</Command>
<Command>if("%t%" == "corale"){i = 14; j = 3;}</Command>
<Command>if("%t%" == "coralf"){i = 15; j = 3;}</Command>
<Command>if("%t%" == "shorelinesanda"){i = 0; j = 4;}</Command>
<Command>if("%t%" == "shorelineaegeana"){i = 1; j = 4;}</Command>
<Command>if("%t%" == "shorelineaegeanb"){i = 2; j = 4;}</Command>
<Command>if("%t%" == "shorelineaegeanc"){i = 3; j = 4;}</Command>
<Command>if("%t%" == "shorelineredseaa"){i = 4; j = 4;}</Command>
<Command>if("%t%" == "shorelineredseab"){i = 5; j = 4;}</Command>
<Command>if("%t%" == "shorelineredseac"){i = 6; j = 4;}</Command>
<Command>if("%t%" == "shorelinenorwegiana"){i = 7; j = 4;}</Command>
<Command>if("%t%" == "shorelinenorwegianb"){i = 8; j = 4;}</Command>
<Command>if("%t%" == "shorelinenorwegianc"){i = 9; j = 4;}</Command>
<Command>if("%t%" == "shorelinemediterraneana"){i = 10; j = 4;}</Command>
<Command>if("%t%" == "shorelinemediterraneanb"){i = 11; j = 4;}</Command>
<Command>if("%t%" == "shorelinemediterraneanc"){i = 12; j = 4;}</Command>
<Command>if("%t%" == "shorelinemediterraneand"){i = 13; j = 4;}</Command>
<Command>if("%t%" == "shorelineatlantica"){i = 14; j = 4;}</Command>
<Command>if("%t%" == "shorelineatlanticb"){i = 15; j = 4;}</Command>
<Command>if("%t%" == "shorelineatlanticc"){i = 16; j = 4;}</Command>
<Command>if("%t%" == "shorelinetundraa"){i = 17; j = 4;}</Command>
<Command>if("%t%" == "shorelinetundrab"){i = 18; j = 4;}</Command>
<Command>if("%t%" == "shorelinetundrac"){i = 19; j = 4;}</Command>
<Command>if("%t%" == "shorelinetundrad"){i = 20; j = 4;}</Command>
<Command>if("%t%" == "riversandya"){i = 21; j = 4;}</Command>
<Command>if("%t%" == "riversandyb"){i = 22; j = 4;}</Command>
<Command>if("%t%" == "riversandyc"){i = 23; j = 4;}</Command>
<Command>if("%t%" == "riversandyshallowa"){i = 24; j = 4;}</Command>
<Command>if("%t%" == "rivergrassya"){i = 25; j = 4;}</Command>
<Command>if("%t%" == "rivergrassyb"){i = 26; j = 4;}</Command>
<Command>if("%t%" == "rivergrassyc"){i = 27; j = 4;}</Command>
<Command>if("%t%" == "rivericya"){i = 28; j = 4;}</Command>
<Command>if("%t%" == "rivericyb"){i = 29; j = 4;}</Command>
<Command>if("%t%" == "rivericyc"){i = 30; j = 4;}</Command>
<Command>if("%t%" == "rivermarsha"){i = 31; j = 4;}</Command>
<Command>if("%t%" == "rivermarshb"){i = 32; j = 4;}</Command>
<Command>if("%t%" == "rivermarshc"){i = 33; j = 4;}</Command>
<Command>if("%t%" == "icea"){i = 0; j = 5;}</Command>
<Command>if("%t%" == "iceb"){i = 1; j = 5;}</Command>
<Command>if("%t%" == "icec"){i = 2; j = 5;}</Command>
<Command>if("%t%" == "miningground"){i = 3; j = 5;}</Command>
<Command>if("%t%" == "black"){i = 4; j = 5;}</Command>
<Command>if("%t%" == "hades1"){i = 5; j = 5;}</Command>
<Command>if("%t%" == "hades2"){i = 6; j = 5;}</Command>
<Command>if("%t%" == "hades4"){i = 7; j = 5;}</Command>
<Command>if("%t%" == "hades8"){i = 8; j = 5;}</Command>
<Command>if("%t%" == "hades9"){i = 9; j = 5;}</Command>
<Command>terrainSetType(j);</Command>
<Command>terrainSetSubtype(i);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trQuestVarSet("zzzza",xsVectorGetX(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzb",xsVectorGetY(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzc",xsVectorGetZ(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trCameraCut(xsVectorSet(trQuestVarGet("zzzza"),trQuestVarGet("zzzzb"),trQuestVarGet("zzzzc")), vector(0.0,-1.0,-0.0), vector(0.0,-0.0,1.0), vector(1.0,0.0,0.0));</Command>
<Command>uiPaintTerrainOverlay(0);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackPlay(10000,-1);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") == 2){</Command>
<Command>uiPaintTerrainOverlay(1);</Command>
<Command>editMode("none");</Command>
<Command>subModeLeave("Simulation", "Editor");</Command>
<Command>trackRemove();</Command>
<Command>trackPlay(1,-1);</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>map("mouse2down","earthquake","editmode(\"none\")");</Command>
<Command>map("mouse1down","earthquake","editmode(\"none\")");</Command>
<Command>trQuestVarSet("zzzz",0);</Command>
<Command>trEventFire(%EventID%);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") != 0){</Command>
<Command>trDelayedRuleActivation("_%v%");</Command>
<Command>}</Command>
</Effect>

<Effect name="zsPaint Forest">
<Param name="SrcObject3" dispName="Change Block" varType="unit">default</Param>
<Param name="s1" dispName="BrushSizeX" varType="stringid">1</Param>
<Param name="s2" dispName="BrushSizeZ" varType="stringid">1</Param>
<Param name="t" dispName="Forest" VarType="string">Pine Forest</Param>
<Param name="v2" dispName="Brush is square" varType="Bool">true</Param>
<Param name="v" dispName="Trigger Name" varType="stringid">paint1</Param>
<Param name="EventID" dispName="$$22362$$Trigger" varType="event">-1</Param>
<Command>trQuestVarSet("zzzz", trQuestVarGet("zzzz") + 1);</Command>
<Command>if(trQuestVarGet("zzzz") == 1){</Command>
<Command>map("mouse2down","earthquake","");</Command>
<Command>map("mouse1down","earthquake","");</Command>
<Command>subModeEnter("Simulation", "Editor");</Command>
<Command>modeEnter("pregame");</Command>
<Command>modeEnter("Simulation");</Command>
<Command>subModeEnter("Simulation", "Singleplayer");</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>editMode("paintforest");</Command>
<Command>if(%v2% == false)uiChangeBrushType("Circular");</Command>
<Command>if(%v2% == true)uiChangeBrushType("Rectangular");</Command>
<Command>uiChangeBrushSize(%s1%,%s2%,1,1);</Command>
<Command>uiSetForestType("%t%");</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trQuestVarSet("zzzza",xsVectorGetX(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzb",xsVectorGetY(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzc",xsVectorGetZ(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trCameraCut(xsVectorSet(trQuestVarGet("zzzza"),trQuestVarGet("zzzzb"),trQuestVarGet("zzzzc")), vector(0.0,-1.0,-0.0), vector(0.0,-0.0,1.0), vector(1.0,0.0,0.0));</Command>
<Command>uiPaintTerrainOverlay(0);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackPlay(10000,-1);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") == 2){</Command>
<Command>uiPaintTerrainOverlay(1);</Command>
<Command>editMode("none");</Command>
<Command>subModeLeave("Simulation", "Editor");</Command>
<Command>trackRemove();</Command>
<Command>trackPlay(1,-1);</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>map("mouse2down","earthquake","editmode(\"none\")");</Command>
<Command>map("mouse1down","earthquake","editmode(\"none\")");</Command>
<Command>trQuestVarSet("zzzz",0);</Command>
<Command>trEventFire(%EventID%);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") != 0){</Command>
<Command>trDelayedRuleActivation("_%v%");</Command>
<Command>}</Command>
</Effect>

<Effect name="zsPaint Cliff">
<Param name="SrcObject3" dispName="Change Block" varType="unit">default</Param>
<Param name="s1" dispName="BrushSize" varType="stringid">1</Param>
<Param name="t" dispName="Cliff" VarType="string">Greek</Param>
<Param name="v2" dispName="Height" varType="string">3.5</Param>
<Param name="v" dispName="Trigger Name" varType="stringid">paint1</Param>
<Param name="EventID" dispName="$$22362$$Trigger" varType="event">-1</Param>
<Command>trQuestVarSet("zzzz", trQuestVarGet("zzzz") + 1);</Command>
<Command>if(trQuestVarGet("zzzz") == 1){</Command>
<Command>map("mouse2down","earthquake","");</Command>
<Command>map("mouse1down","earthquake","");</Command>
<Command>subModeEnter("Simulation", "Editor");</Command>
<Command>modeEnter("pregame");</Command>
<Command>modeEnter("Simulation");</Command>
<Command>subModeEnter("Simulation", "Singleplayer");</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>editMode("paintcliff");</Command>
<Command>uiChangeBrushType("Circular");</Command>
<Command>uiChangeBrushSize(%s1%,%s1%,1,1);</Command>
<Command>uiSetCliffType("%t%");</Command>
<Command>configSetFloat("cliffHeight",%v2%);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trQuestVarSet("zzzza",xsVectorGetX(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzb",xsVectorGetY(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzc",xsVectorGetZ(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trCameraCut(xsVectorSet(trQuestVarGet("zzzza"),trQuestVarGet("zzzzb"),trQuestVarGet("zzzzc")), vector(0.0,-1.0,-0.0), vector(0.0,-0.0,1.0), vector(1.0,0.0,0.0));</Command>
<Command>uiPaintCliff(0);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackPlay(10000,-1);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") == 2){</Command>
<Command>uiPaintCliff(1);</Command>
<Command>configSetFloat("cliffHeight",3.5);</Command>
<Command>editMode("none");</Command>
<Command>subModeLeave("Simulation", "Editor");</Command>
<Command>trackRemove();</Command>
<Command>trackPlay(1,-1);</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>map("mouse2down","earthquake","editmode(\"none\")");</Command>
<Command>map("mouse1down","earthquake","editmode(\"none\")");</Command>
<Command>trQuestVarSet("zzzz",0);</Command>
<Command>trEventFire(%EventID%);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") != 0){</Command>
<Command>trDelayedRuleActivation("_%v%");</Command>
<Command>}</Command>
</Effect>

<Effect name="zsPaint Water">
<Param name="SrcObject3" dispName="Change Block" varType="unit">default</Param>
<Param name="s1" dispName="BrushSize" varType="stringid">1</Param>
<Param name="t" dispName="Water" VarType="string">Greek River</Param>
<Param name="v2" dispName="Paint Area" varType="Bool">false</Param>
<Param name="v1" dispName="Height, Softness, Sharpness" varType="string">-1.0, 0.990, 0.5</Param>
<Param name="v" dispName="Trigger Name" varType="stringid">paint1</Param>
<Param name="EventID" dispName="$$22362$$Trigger" varType="event">-1</Param>
<Command>trQuestVarSet("zzzz", trQuestVarGet("zzzz") + 1);</Command>
<Command>if(trQuestVarGet("zzzz") == 1){</Command>
<Command>map("mouse2down","earthquake","");</Command>
<Command>map("mouse1down","earthquake","");</Command>
<Command>subModeEnter("Simulation", "Editor");</Command>
<Command>modeEnter("pregame");</Command>
<Command>modeEnter("Simulation");</Command>
<Command>subModeEnter("Simulation", "Singleplayer");</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>editMode("paintwater");</Command>
<Command>uiChangeBrushType("Circular");</Command>
<Command>uiChangeBrushSize(%s1%,%s1%,1,1);</Command>
<Command>uiSetWaterType("%t%");</Command>
<Command>configSetFloat("waterplaneoffset",-1.0*xsVectorGetX(vector(%v1%)));</Command>
<Command>configSetFloat("brushSoftness",xsVectorGetY(vector(%v1%)));</Command>
<Command>configSetFloat("brushBias",xsVectorGetZ(vector(%v1%)));</Command>
<Command>if(%v2% == false)configUndef("waterPaintArea");</Command>
<Command>if(%v2% == true)configDef("waterPaintArea");</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trQuestVarSet("zzzza",xsVectorGetX(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzb",xsVectorGetY(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzc",xsVectorGetZ(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trCameraCut(xsVectorSet(trQuestVarGet("zzzza"),trQuestVarGet("zzzzb"),trQuestVarGet("zzzzc")), vector(0.0,-1.0,-0.0), vector(0.0,-0.0,1.0), vector(1.0,0.0,0.0));</Command>
<Command>uiPaintWater(0);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackPlay(10000,-1);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") == 2){</Command>
<Command>uiPaintWater(1);</Command>
<Command>configSetFloat("waterplaneoffset",1.0);</Command>
<Command>configSetFloat("brushSoftness",0.99);</Command>
<Command>configSetFloat("brushBias",0.5);</Command>
<Command>editMode("none");</Command>
<Command>subModeLeave("Simulation", "Editor");</Command>
<Command>trackRemove();</Command>
<Command>trackPlay(1,-1);</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>map("mouse2down","earthquake","editmode(\"none\")");</Command>
<Command>map("mouse1down","earthquake","editmode(\"none\")");</Command>
<Command>trQuestVarSet("zzzz",0);</Command>
<Command>trEventFire(%EventID%);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") != 0){</Command>
<Command>trDelayedRuleActivation("_%v%");</Command>
<Command>}</Command>
</Effect>

<Effect name="zsDelete Paint">
<Param name="SrcObject3" dispName="Change Block" varType="unit">default</Param>
<Param name="s1" dispName="BrushSizeX" varType="stringid">1</Param>
<Param name="s2" dispName="BrushSizeZ" varType="stringid">1</Param>
<Param name="v2" dispName="Brush is square" varType="Bool">true</Param>
<Param name="v" dispName="Trigger Name" varType="stringid">paint1</Param>
<Param name="EventID" dispName="$$22362$$Trigger" varType="event">-1</Param>
<Command>trQuestVarSet("zzzz", trQuestVarGet("zzzz") + 1);</Command>
<Command>if(trQuestVarGet("zzzz") == 1){</Command>
<Command>map("mouse2down","earthquake","");</Command>
<Command>map("mouse1down","earthquake","");</Command>
<Command>subModeEnter("Simulation", "Editor");</Command>
<Command>modeEnter("pregame");</Command>
<Command>modeEnter("Simulation");</Command>
<Command>subModeEnter("Simulation", "Singleplayer");</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>editMode("deleteunits");</Command>
<Command>if(%v2% == false)uiChangeBrushType("Circular");</Command>
<Command>if(%v2% == true)uiChangeBrushType("Rectangular");</Command>
<Command>uiChangeBrushSize(%s1%,%s2%,1,1);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trQuestVarSet("zzzza",xsVectorGetX(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzb",xsVectorGetY(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzc",xsVectorGetZ(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trCameraCut(xsVectorSet(trQuestVarGet("zzzza"),trQuestVarGet("zzzzb"),trQuestVarGet("zzzzc")), vector(0.0,-1.0,-0.0), vector(0.0,-0.0,1.0), vector(1.0,0.0,0.0));</Command>
<Command>uiDeleteUnits(0);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackPlay(10000,-1);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") == 2){</Command>
<Command>uiDeleteUnits(1);</Command>
<Command>editMode("none");</Command>
<Command>subModeLeave("Simulation", "Editor");</Command>
<Command>trackRemove();</Command>
<Command>trackPlay(1,-1);</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>map("mouse2down","earthquake","editmode(\"none\")");</Command>
<Command>map("mouse1down","earthquake","editmode(\"none\")");</Command>
<Command>trQuestVarSet("zzzz",0);</Command>
<Command>trEventFire(%EventID%);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") != 0){</Command>
<Command>trDelayedRuleActivation("_%v%");</Command>
<Command>}</Command>
</Effect>

<Effect name="zsRoughen">
<Param name="SrcObject3" dispName="Change Block" varType="unit">default</Param>
<Param name="s1" dispName="BrushSizeX" varType="stringid">1</Param>
<Param name="s2" dispName="BrushSizeZ" varType="stringid">1</Param>
<Param name="v2" dispName="Brush is square" varType="Bool">true</Param>
<Param name="v1" dispName="Amplitude, Tolerance" varType="string">1.0, 3.0</Param>
<Param name="v" dispName="Trigger Name" varType="stringid">paint1</Param>
<Param name="EventID" dispName="$$22362$$Trigger" varType="event">-1</Param>
<Command>trQuestVarSet("zzzz", trQuestVarGet("zzzz") + 1);</Command>
<Command>if(trQuestVarGet("zzzz") == 1){</Command>
<Command>map("mouse2down","earthquake","");</Command>
<Command>map("mouse1down","earthquake","");</Command>
<Command>subModeEnter("Simulation", "Editor");</Command>
<Command>modeEnter("pregame");</Command>
<Command>modeEnter("Simulation");</Command>
<Command>subModeEnter("Simulation", "Singleplayer");</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>editMode("roughen");</Command>
<Command>if(%v2% == false)uiChangeBrushType("Circular");</Command>
<Command>if(%v2% == true)uiChangeBrushType("Rectangular");</Command>
<Command>uiChangeBrushSize(%s1%,%s2%,1,1);</Command>
<Command>configSetFloat("roughenAmplitude",-1.0*xsVectorGetX(vector(%v1%,0)));</Command>
<Command>configSetFloat("roughenTolerance",xsVectorGetY(vector(%v1%,0)));</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trQuestVarSet("zzzza",xsVectorGetX(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzb",xsVectorGetY(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trQuestVarSet("zzzzc",xsVectorGetZ(kbGetBlockPosition("%SrcObject3%")));</Command>
<Command>trCameraCut(xsVectorSet(trQuestVarGet("zzzza"),trQuestVarGet("zzzzb"),trQuestVarGet("zzzzc")), vector(0.0,-1.0,-0.0), vector(0.0,-0.0,1.0), vector(1.0,0.0,0.0));</Command>
<Command>uiRoughen(0);</Command>
<Command>trackInsert();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackAddWaypoint();</Command>
<Command>trackEditWaypoint();</Command>
<Command>trackPlay(10000,-1);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") == 2){</Command>
<Command>uiRoughen(1);</Command>
<Command>configSetFloat("roughenAmplitude",1.0);</Command>
<Command>configSetFloat("roughenTolerance",3.0);</Command>
<Command>editMode("none");</Command>
<Command>subModeLeave("Simulation", "Editor");</Command>
<Command>trackRemove();</Command>
<Command>trackPlay(1,-1);</Command>
<Command>configToggle("cameraMovementLock");</Command>
<Command>map("mouse2down","earthquake","editmode(\"none\")");</Command>
<Command>map("mouse1down","earthquake","editmode(\"none\")");</Command>
<Command>trQuestVarSet("zzzz",0);</Command>
<Command>trEventFire(%EventID%);</Command>
<Command>}</Command>
<Command>if(trQuestVarGet("zzzz") != 0){</Command>
<Command>trDelayedRuleActivation("_%v%");</Command>
<Command>}</Command>
</Effect>



Have fun! I be adding more as they are being done.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.

[This message has been edited by nottud (edited 01-06-2010 @ 11:10 AM).]

Replies:
posted 04 January 2010 05:59 PM EDT (US)     1 / 25  
This looks cool, but why is it only single-player? or is it just not multiplayer?

So will this be able to change the terrain in a game?
posted 04 January 2010 06:02 PM EDT (US)     2 / 25  
Yes

It is singleplayer only because soe of the comamnds to make these z tirgegrs work only work singleplayer.

EDIT:Interestingly enough the water one IGNORES the brush limit and you can also use it to do extreme elevation if you set the paint area option on.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.

[This message has been edited by nottud (edited 01-04-2010 @ 06:15 PM).]

posted 04 January 2010 06:40 PM EDT (US)     3 / 25  
Hmm.. I don't know how this is different from the regular ones. Somehow works faster than the multiplayer editor commands, or is the extreme elevation the main appeal?

☭ Long live the Turk ☭
"Xzy is the worst parts of kman and legion combined, only with proper spelling so you know he's smart enough to act otherwise if he wasn't such an idiot." - theferret
"Xzy is like all of the terrible Guardian contributors rolled into one person. Proof that you can genetically engineer a humanoid abomination." - Fiindil
posted 04 January 2010 07:45 PM EDT (US)     4 / 25  
Hm, this sounds extremely sweet. I'll have to try this when i get home.
posted 05 January 2010 02:44 AM EDT (US)     5 / 25  
You can't do these ingame normally. My normal z trigegrs are normally much mroe sevearly restrycted than these. No forest, water, cliff and very limitied terrain tools. Plus I styill have some mroe of these to write yet.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 05 January 2010 06:37 AM EDT (US)     6 / 25  
This is an AMAZING work nottud!!

How did you find the types and subtypes of terrains?
Maybe now is this your harder trigger?

@Xzy: The difference is that in the other ones you could only paint everywhere, or copy areas

Utilities || Map Tool 3.1 Inventory Triggers MP Triggers Comic AoM
RandomMaps || Mad Supremacy Escape Your Mates Escape
Scenarios || Bomberman Minigames Y 2.0 Convert & Fight
Games || Bullet Demo Ball Bouncer 3D
WRP_Beater: "Meglio una gallina oggi che un uovo domani."
My name has been misspelled 132 times (Last: BSU_DoLhades Best: Lostrozzabercrombie In a row: 5)
posted 05 January 2010 07:08 AM EDT (US)     7 / 25  
I used the terrains file and worked them out with the help of the console.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 05 January 2010 11:14 AM EDT (US)     8 / 25  
These will be VERY useful for my scenario, The Living Dead.

My Work: Zombie Goliath texture mod -- My Screenshots -- Current Projects: Lost In Darkness
Member of: Black Ice Studios
____
|0..0|
||||
posted 05 January 2010 01:15 PM EDT (US)     9 / 25  
@Xzy: The difference is that in the other ones you could only paint everywhere, or copy areas
Nope, you could paste and copy specific areas between cinematic blocks.

☭ Long live the Turk ☭
"Xzy is the worst parts of kman and legion combined, only with proper spelling so you know he's smart enough to act otherwise if he wasn't such an idiot." - theferret
"Xzy is like all of the terrible Guardian contributors rolled into one person. Proof that you can genetically engineer a humanoid abomination." - Fiindil
posted 05 January 2010 01:30 PM EDT (US)     10 / 25  
That's what I meant, but you couldn't create new terrain from nothing unless covering all the map

Utilities || Map Tool 3.1 Inventory Triggers MP Triggers Comic AoM
RandomMaps || Mad Supremacy Escape Your Mates Escape
Scenarios || Bomberman Minigames Y 2.0 Convert & Fight
Games || Bullet Demo Ball Bouncer 3D
WRP_Beater: "Meglio una gallina oggi che un uovo domani."
My name has been misspelled 132 times (Last: BSU_DoLhades Best: Lostrozzabercrombie In a row: 5)
posted 05 January 2010 01:36 PM EDT (US)     11 / 25  
Well you're right about that, but there were work-arounds by using copy and paste triggers and having a small square of that terrain.

Certainly a lot of effort, but I recall making a map that was *very* z trigger-intensive. Unfortunately, I never completed or (or backed it up.) I'll give you a clue though - it was like Art Contest but a thousand times crazier.

☭ Long live the Turk ☭
"Xzy is the worst parts of kman and legion combined, only with proper spelling so you know he's smart enough to act otherwise if he wasn't such an idiot." - theferret
"Xzy is like all of the terrible Guardian contributors rolled into one person. Proof that you can genetically engineer a humanoid abomination." - Fiindil
posted 05 January 2010 06:11 PM EDT (US)     12 / 25  
Delete paint added. This is like the brush where you delete untis in the editor with.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 06 January 2010 11:12 AM EDT (US)     13 / 25  
I have now added a roughen trigger. There is no need for a smooth though because one already exists that works online and works really well.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 06 January 2010 08:26 PM EDT (US)     14 / 25  
Nottud the smooth trigger currently isn't precise; 0.1 is the same as 0.00000000000001 for me. Is this AOM or some other thing?

AOM Scenario Trigger Editor Official Thread!

Chat Contains without OOS for online!
Want to know what happens when you mess with water and elevation in a random map script? Well, you'll want to see this, then.

[This message has been edited by Green_Turtle (edited 13-32-2011 @ 13:60 AM).]
posted 07 January 2010 01:19 PM EDT (US)     15 / 25  
The smooth trigger you specify the amount as an integer.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 17 January 2010 04:21 PM EDT (US)     16 / 25  
OK. But how did you get the trigger text feilds so small? I try to make them smaller my self but for some reason only the width and position will change, and the height just will not change!

AOM Scenario Trigger Editor Official Thread!

Chat Contains without OOS for online!
Want to know what happens when you mess with water and elevation in a random map script? Well, you'll want to see this, then.

[This message has been edited by Green_Turtle (edited 13-32-2011 @ 13:60 AM).]
posted 17 January 2010 05:36 PM EDT (US)     17 / 25  
The height seems to be related in some unknown way... I have my screen in a weird setitng and I had to correct my trigger layout file so they appear in the right place.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 26 January 2010 07:53 PM EDT (US)     18 / 25  
Update?

My Work: Zombie Goliath texture mod -- My Screenshots -- Current Projects: Lost In Darkness
Member of: Black Ice Studios
____
|0..0|
||||
posted 26 January 2010 10:58 PM EDT (US)     19 / 25  
How do you use them? Center the effect on a cinematic block?
posted 26 January 2010 11:42 PM EDT (US)     20 / 25  
hey nottud, how did you get your trigger boxes so wide? it looks so spacious in that screen shot :O

Who loves random god powers?:LeapinG GoD PowerS
Most pits made so far: 25 Pits of Doom
Can you make it pass the street?: Frogger>>>>
One addictive game!:Catapult Battle Field
Get Four In A Row:Connect ~ Four
Are You Strong Enough To Lift An Elephant?Dodge Elephant
posted 27 January 2010 11:43 PM EDT (US)     21 / 25  
Click and drag. You can do if for the Objects list, I assume it works on the trigger box. You can also move it.
posted 29 January 2010 01:08 PM EDT (US)     22 / 25  
I am running the game on a very high resolution: 1650 by 1080 I think.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 06 February 2010 10:18 AM EDT (US)     23 / 25  
Any more progress?

My Work: Zombie Goliath texture mod -- My Screenshots -- Current Projects: Lost In Darkness
Member of: Black Ice Studios
____
|0..0|
||||
posted 06 February 2010 01:12 PM EDT (US)     24 / 25  
Nothing since not much left to add to be honest. Anything I missed though please say.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 06 February 2010 01:40 PM EDT (US)     25 / 25  
Seems good to me. When are you releasing it?

My Work: Zombie Goliath texture mod -- My Screenshots -- Current Projects: Lost In Darkness
Member of: Black Ice Studios
____
|0..0|
||||
Age of Mythology Heaven » Forums » Scenario Design » Single Player Only z Triggers
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames