Linking messages to Object effects

Post » Fri Apr 09, 2010 5:17 am

I have a weapon that features an object effect that results in concussion.
I made a message that says "You have a concussion".
How can I link the two so that when the effect is applied, the message is displayed?
I have some examples of how this was done with scripts in Oblivion but it seems FO3 uses a text box system. This is fine with me as I am a scripting noob, but I can't see how the connection is made.

Of course, I only want this message displayed when the weapon is used and the effect applied to the player, not when it hits NPCs.

Any assistance with this would be much appreciated.
User avatar
oliver klosoff
 
Posts: 3436
Joined: Sun Nov 25, 2007 1:02 am

Post » Thu Apr 08, 2010 10:19 pm

For your effect, use a script effect instead of a base effect, and code the base effect and add a http://geck.gamesas.com/index.php/ShowMessage command.
User avatar
Adam Kriner
 
Posts: 3448
Joined: Mon Aug 06, 2007 2:30 am

Post » Fri Apr 09, 2010 4:52 am

In order to show a message only when the effect is applied to the player, you'll want to add another effect item (using a base effect with a script archetype) to your object effect, and give it a condition using http://geck.gamesas.com/index.php/GetIsReference to check that it's running on the player. As pkleiss mentioned, you'll want to use http://geck.gamesas.com/index.php/ShowMessage to show your message. In order to use this function, you'll first need to create a new message form and give it content, then just pass its editorID to http://geck.gamesas.com/index.php/ShowMessage when you call it.

Cipscis
User avatar
IsAiah AkA figgy
 
Posts: 3398
Joined: Tue Oct 09, 2007 7:43 am

Post » Thu Apr 08, 2010 11:24 pm

Thanks guys!
I will give that a shot
User avatar
Amy Masters
 
Posts: 3277
Joined: Thu Jun 22, 2006 10:26 am


Return to Fallout 3