Help with creating a script

Post » Fri Nov 18, 2011 10:58 pm

Hi there.
I'm looking for somebody who can help me with a creation of one script...

Let's say I got an unique creature and after the player kill it, two things will happen:
1. The player gains a specific amount of XP
2. The player will be teleported to another location

I suppose I can use "RewardXP" and "Player.MoveTo" commands but don't know how exactly to interpret that because of lack of my script knowledge...
Please, any ideas...?
User avatar
James Shaw
 
Posts: 3399
Joined: Sun Jul 08, 2007 11:23 pm

Post » Fri Nov 18, 2011 11:23 am

I haven't made a script like that, but I'd guess you'd need to attach a script to the creature and the script would need an OnDeath block containing RewardXP 100 (or whatever number) and Player.MoveTo (like you said). You'd need a target for the MoveTo command to send the player to, such as a Marker at the location you want to send the player to. You'd then use Player.MoveTo MyMarker (or whatever you name the Marker).

Queue

Edit - Something like:
scn UniqueCreatureScriptBegin OnDeath	RewardXP 100	Player.MoveTo MyMarkerEnd

User avatar
Robyn Howlett
 
Posts: 3332
Joined: Wed Aug 23, 2006 9:01 pm

Post » Fri Nov 18, 2011 12:35 pm

Thank you. It works flawlessly. :yes:
User avatar
JaNnatul Naimah
 
Posts: 3455
Joined: Fri Jun 23, 2006 8:33 am


Return to Fallout: New Vegas