Randomize wingman words

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
DigaRW
Militia Commander
Militia Commander
Posts: 333
Joined: Thu Jul 30, 2015 3:10 pm
Location: Deep dark space/Indonesia

Tue Mar 21, 2017 10:20 am

Can anyone tell me how to randomize wingman words? I mean when order to attack, he will say "Roger that" instead "Acknowledge". Also sometimes, he will say " I'm on it".
Download Transcendence mods from Reinvented Workbench Project!
Semesta I.G.C v1.34
Great corporate that feature a new items and challenges!
YourCORP v1.11
Build your very own corporation!
Trade Item Extension v1.14
New misc items, foods and resources!
StrongBox v1.4
Open it up to get a random equipments!
Flare Weapons v1.3
New weapons that have very unique abilities!
Click this link!

User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 828
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

Tue Mar 21, 2017 2:53 pm

You can have a random list in a <text> element:

Code: Select all

<Text id="AttackTargetAck">
	(random (list
		"random1"	
		"random2"	
		"random3"	
		"random4"
	))
</Text>
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
"Cowards die many times before their deaths; The valiant never taste of death but once. " -Julius Caesar as written by William Shakespeare, a notorious permadeath player.

User avatar
DigaRW
Militia Commander
Militia Commander
Posts: 333
Joined: Thu Jul 30, 2015 3:10 pm
Location: Deep dark space/Indonesia

Thu Mar 23, 2017 10:55 am

Two more question.
A code when wingman's shield down and when wingman kill an enemy, they will 'chat'. How to make it?
Download Transcendence mods from Reinvented Workbench Project!
Semesta I.G.C v1.34
Great corporate that feature a new items and challenges!
YourCORP v1.11
Build your very own corporation!
Trade Item Extension v1.14
New misc items, foods and resources!
StrongBox v1.4
Open it up to get a random equipments!
Flare Weapons v1.3
New weapons that have very unique abilities!
Click this link!

User avatar
JohnBWatson
Fleet Officer
Fleet Officer
Posts: 1372
Joined: Tue Aug 19, 2014 10:17 pm

Thu Mar 23, 2017 3:53 pm

If there isn't a specific tag for wingmen losing their shields, you can use <OnShieldDown> in the events section of their shield to jury rig it.You'll need to change it to the normal version of the shield when the wingman dies. If there isn't already a better way to do this that I was unable to find, it should be tagged on ministry - ships should have an event here too. For dialogue on killing an enemy, register the enemy for events when the player orders an attack, then use <OnObjDestroyed>. Again, this should be easier to do.

User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 828
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

Thu Mar 23, 2017 10:44 pm

For checking if your wingman's shields are down, use an <OnAttacked> event in the ship class <Events>. This should be compatible with the wingman base class.

Under the event, use (objGetShieldLevel gSource). If this returns zero then send a message;

(objSendMessage gSender gSource "message").
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
"Cowards die many times before their deaths; The valiant never taste of death but once. " -Julius Caesar as written by William Shakespeare, a notorious permadeath player.

User avatar
AssumedPseudonym
Militia Captain
Militia Captain
Posts: 961
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

Fri Mar 24, 2017 2:32 am

Xephyr wrote:
Thu Mar 23, 2017 10:44 pm
For checking if your wingman's shields are down, use an <OnAttacked> event in the ship class <Events>. This should be compatible with the wingman base class.

Under the event, use (objGetShieldLevel gSource). If this returns zero then send a message;

(objSendMessage gSender gSource "message").
 It might also be worth checking to make sure the ship actually has a shield in that case, using (objGetItems gSource 'sI).
Image

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)

Post Reply