Add colors to args that dynamic effects accepts

Bug reports for the different beta versions of transcendence.
Post Reply
User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Thu Sep 12, 2013 7:08 am

This is because I want to change the color of a weapon when it has higher dps or a unique effect.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2614
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Thu Sep 12, 2013 11:14 am

how dynamic effect lasers work ? don't they change color between laser and turbolaser ?

PM
Fleet Admiral
Fleet Admiral
Posts: 2338
Joined: Wed Sep 01, 2010 12:54 am

Thu Sep 12, 2013 1:20 pm

I guess RPC means one of two things.
* Weapon item icon changes color when you enhance the weapon.
* Lasers change color when you enhance them with enough damage bonus. Currently, if you have enough +damage% for lasers as strong as turbolasers, they are still red (or orange in case of Bolide). I need to use a messy OnFireWeapon event to fire one of many laser entities to force the game to upgrade color when laser weapon gets a damage boost.
Download and Play in 1.8 Beta...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
Download and Play in 1.7...
Star Castle Arcade: Relive classic arcade gaming in a new Transcendence adventure!
Playership Drones v7 (Beta): (OUTDATED!) Acquire and command almost any ship in Stars of the Pilgrim or Eternity Port.
Work in progress... Playership Drones v8: On hiatus!

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Thu Sep 12, 2013 4:39 pm

I was thinking that <GetParameters> could have PrimaryColor: and SecondaryColor: as arguments:

Code: Select all

			<GetParameters>
               (block Nil
                  ...
            
                  {
                     length: ...
                     width: ...
                     intensity: ...
					 PrimaryColor: ...
					 SecondaryColor ...
                     }
                  )
            </GetParameters>
Then I would have a function to get the damage of the weapon (I'm still looking for it but I might have to request it >.<) and then return colors as an argument using switch:

Code: Select all

(Switch
	damage > 30
		return red
	damage > 50
		return purple
	)
Actually I might also need aWeaponUNID for this event as well :S
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

george moromisato
Developer
Developer
Posts: 2950
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Fri Sep 13, 2013 2:56 pm

RPC wrote:I was thinking that <GetParameters> could have PrimaryColor: and SecondaryColor: as arguments:

Code: Select all

			<GetParameters>
               (block Nil
                  ...
            
                  {
                     length: ...
                     width: ...
                     intensity: ...
					 PrimaryColor: ...
					 SecondaryColor ...
                     }
                  )
            </GetParameters>
Then I would have a function to get the damage of the weapon (I'm still looking for it but I might have to request it >.<) and then return colors as an argument using switch:

Code: Select all

(Switch
	damage > 30
		return red
	damage > 50
		return purple
	)
Actually I might also need aWeaponUNID for this event as well :S
Have you tried it? I believe it works today.

I will add weaponUNID to the gData variable.

Post Reply