Jump to content


Photo

Playing around with Powers


  • Please log in to reply
8 replies to this topic

#1 Crusard

Crusard

    Local n00b

  • Project Team
  • 483 posts
  • Location:Buenos Aires, Argentina
  • Projects:Crusard's Tower Defense
  •  Poor feedback kills mapper.

Posted 27 November 2008 - 06:29 AM

Is it possible to change the height at which Freezing Rain shows? Right now my map has a normal height of about 300, but the rain spawns on height 0 so it's invisible.

Also, how can I grant Elven Gifts to a player (any faction)?

Posted Image


#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 27 November 2008 - 07:23 AM

Freezing Rain should show at any height I believe that your height is not the problem, but I do not know what is...
How do you know it spawns at Height 0? or is that just some weird guess ;)

Cant you just grant it using a script in the map?
Ridder Geel

#3 Crusard

Crusard

    Local n00b

  • Project Team
  • 483 posts
  • Location:Buenos Aires, Argentina
  • Projects:Crusard's Tower Defense
  •  Poor feedback kills mapper.

Posted 27 November 2008 - 04:01 PM

I made a test map with two heights: the left side at about 700 and the right side at 0. Gave myself 30 power points and threw in the rain with isengard.
I could see the rain in the "lower floor" but it was sunny in the higher one.

Elven gifts: I can't seem to grant powers (via scripts) that don't belong (example, granting freezing rain to MotW, or Heal to Isengard), and apparently I can't grant Elven Gifts to either. How can it be done that a power can be granted to any player independantly of their faction?

Edited by Crusard, 27 November 2008 - 05:16 PM.

Posted Image


#4 Puppeteer

Puppeteer

    title available

  • Global Moderators
  • 2,947 posts
  • Location:United Kingdom
  •  Faute de Mieux
  • Division:Community
  • Job:Magazine Staff/Global Moderator

Posted 27 November 2008 - 04:27 PM

You have to adjust the good & evil faction's spell books to give them the option of purchasing elven gifts through map.ini (or modding) first.

#5 Crusard

Crusard

    Local n00b

  • Project Team
  • 483 posts
  • Location:Buenos Aires, Argentina
  • Projects:Crusard's Tower Defense
  •  Poor feedback kills mapper.

Posted 28 November 2008 - 12:04 AM

Any more on that map.ini please? ;)

Posted Image


#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 28 November 2008 - 12:10 AM

Try changing the weather using this code in your map.ini: (BTW the snow is disabled so no need to delete any part of this code :) )
Weather
  SnowEnabled = no			  ; enable/disable snow on the map.
  IsSnowing = no				; is it snowing today?
 
  SnowTexture = EXRainDrop.tga   ; texture used for each snow particle.
  
  SnowBoxHeight = 300			; height from which snow falls
  SnowSpacing = 30			   ; snow spacing -- less means more
  NumberTiles = 4
 
  SnowAmplitude = 0			 ; amount of side-to-side movement. 
  SnowFrequencyScaleX = 0		; speed of side-to-side wave movement.
  SnowFrequencyScaleY = 0		; speed of side-to-side wave movement. 
 
  SnowSpeed = 50.0			  ; speed at which snow falls
;  SnowXYSpeed = X:0.0 Y:0.0		 ; xy speed of snow
 
  SnowPointSize = 5			  ; scale the size of snow particles.
  SnowMinPointSize = 40		  ; min point size
  SnowMaxPointSize = 80		  ; max point size
 
 ; Some video cards can't do hardware accelerated particles. Set this
 ; setting to "no" in order see what emulation will look like. Use the
 ; SnowQuadSize setting to make it look similar to PointSprite version.;;;

  SnowPointSprites = no		  ; set to "no" for point-sprite emulation.
  SnowQuadSize = 10			  ; scale the size of snow particles when using point-sprite emulation.

 ; Lightning stuff
  LightningEnabled = no		  ; enable/disable lightning
  LightningFactor = 0.5 1.0	  ; flash amount (0, 1) -- make drops brighter by this much
  LightningDuration = 50		 ; how long the lightning lasts
  LightningChance = 0.05		 ; chance of lightning (0, 1)

 ; Spell stuff
  SpellEnabled = yes			 ; enable/disable spell
  SpellDuration = 500			; duration of spell

 ; Ramp stuff
  RampControl = X:0.2 Y:0.8	  ; ramp fade in and out points (0, 1) relative to spell duration
  RampSpeed = X:150.0 Y:250.0	 ; ramp min and max speed
  RampSpacing = X:30.0 Y:20.0	; ramp min and max rain spacing; less means more rain

 ; Cloud control
  CloudTextureSize = X:660.0 Y:660.0	; size in world units that one repetition of the cloud texture spans
  CloudOffsetPerSecond = X:-0.012 Y:-0.018; offset in texture units that the cloud texture moves per second

End

Try changing:
SnowBoxHeight = 300			; height from which snow falls

I know this may probably have no effect on the rain whatsoever but its worth a try ;)
Ridder Geel

#7 Rob38

Rob38

    Believer of Hope

  • Hosted
  • 3,567 posts
  • Location:USA
  • Projects:Helm's Deep Last Hope
  •  One who is not afraid of new challenges

Posted 28 November 2008 - 09:13 AM

Ridder, that is correct. Although I do not know if it works in a map.ini ;)

signature_group1.gif

 

16821.png


#8 Crusard

Crusard

    Local n00b

  • Project Team
  • 483 posts
  • Location:Buenos Aires, Argentina
  • Projects:Crusard's Tower Defense
  •  Poor feedback kills mapper.

Posted 28 November 2008 - 05:56 PM

It does, Thanks! :shiftee:
I changed a couple of other values and it seems to work. It's also been fun to play around with rain a bit.

Now I only have my give-a-power-to-any-faction issue...

Edited by Crusard, 28 November 2008 - 05:58 PM.

Posted Image


#9 Crusard

Crusard

    Local n00b

  • Project Team
  • 483 posts
  • Location:Buenos Aires, Argentina
  • Projects:Crusard's Tower Defense
  •  Poor feedback kills mapper.

Posted 29 November 2008 - 04:43 PM

After about hours of trial and error, I managed to allow any spells for any faction by:

1) Creating a new spellbook object, containing all spells (adding all the "modules" from previously existing spellbooks)
2) Creating a new CommandSet and Store CommandSet
3) Setting the spellbook in each the PlayerTemplate factions to my custom spellbook and spellstore, and setting their Sciences to Science_Good (Which I used for all new spells)
4) Setting the Sciences prerequisites to GoodFaction so they're all available to use on my new spellbook.

Whew! I bet you guys knew this ;)

Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users