Author Topic: The "I want to but I can't" modding requests thread  (Read 217270 times)

0 Members and 1 Guest are viewing this topic.

sillytuna

  • Eufloria lacky
  • Administrator
  • Arboreal Being
  • *****
  • Thank You
  • -Given: 58
  • -Receive: 92
  • Posts: 446
    • TunaHQ
  • Eufloria: Yes
Re: The "I want to but I can't" modding requests thread
« Reply #90 on: September 29, 2015, 12:26:09 AM »
The ParameciumMine sprite is defined as:

AddSprite Type:ParameciumMine
   AddLayer Body
      Set type                        TextureCenter
      Set texture                        SpriteTexture1
      AddElement Body_1
         Set collision                  0.5
         Set baseWidth                   5
         Set baseLength                  4
         Set colour1                     BodyBack, 150
         Set colour2                     BodyFront, 150
         Set hotspotMode                  Relative
         Set hotspot                     0, 0.1
      AddElement Body_2
         Set baseWidth                   5
         Set baseLength                  4
         Set angle                     180
         Set colour1                     BodyBack, 150
         Set colour2                     BodyFront, 150
         Set hotspotMode                  Relative
         Set hotspot                     0, -0.1

   AddLayer Light
      Set type                        TextureCenter
      Set texture                        SpriteGlow
      AddElement Light_1
         Set baseWidth                  7
         Set baseLength                  7
         Set colour1                     163, 249, 2, 150
         Set colour2                     163, 249, 2, 150


AddSprite Type:ActivatedParameciumMine Parent:ParameciumMine
   SelectLayer Light
      SelectElement Light_1
         Set colour1                     White
         Set colour2                     White


sillytuna

  • Eufloria lacky
  • Administrator
  • Arboreal Being
  • *****
  • Thank You
  • -Given: 58
  • -Receive: 92
  • Posts: 446
    • TunaHQ
  • Eufloria: Yes
Re: The "I want to but I can't" modding requests thread
« Reply #91 on: September 29, 2015, 12:27:23 AM »
For completion, the mine object itself is defined as:

AddMob Type:ParameciumMine Parent:Mine
   Set speciesID                     PARAMECIUM_MINE
   Set sprite                          ParameciumMine
   Set onActivateLuaHandler            ParameciumMineActivateHandler
   Set onUpdateLuaHandler               ParameciumMineUpdateHandler
   Set onDeathLuaHandler               ParameciumMineDiedHandler
   Set defaultScale                  1
   Set speedPowerRule                   1, 20, 1.5
   Set explosive.rangePowerRule         15, 15, 1
   Set detonator.triggeredFuseTimerPowerRule   0.15, 0.15, 1
   Set detonator.triggeredSprite         ActivatedParameciumMine