CK Papyrus script problem required (...)+ loop did not match

Post » Fri Apr 11, 2014 8:45 am

I had make a script but when i save it
it show me up this problem


required (...)+ loop did not match anything at input 'native'


here is my script:

Event OnPlayerBowShot (Ammo aKAmmo)
Fire(akAmmo = [my custom arrow's name]) native
endEvent

so, where i have mistaken?
i just said to the machine when i shoot my arrow to shoot some other arrows
i don't know what's going on
can somebody please help?

User avatar
Laura Shipley
 
Posts: 3564
Joined: Thu Oct 26, 2006 4:47 am

Post » Thu Apr 10, 2014 11:32 pm

You don't the the "akAmmo =", I would think.

Event OnPlayerBowShot(Ammo aKAmmo)

Fire(Your arrow's name) native

endEvent

I think that should fix it

User avatar
Adam Baumgartner
 
Posts: 3344
Joined: Wed May 30, 2007 12:12 pm

Post » Fri Apr 11, 2014 2:39 am

Hi,

1) the Event http://www.creationkit.com/OnPlayerBowShot_-_Actorhas four parameters to work properly

2) do not use native when calling a function

Event OnPlayerBowShot(Weapon akWeapon, Ammo akAmmo, float afPower, bool abSunGazing)    Fire( yourAmmo)EndEvent

-docblacky

User avatar
matt
 
Posts: 3267
Joined: Wed May 30, 2007 10:17 am

Post » Fri Apr 11, 2014 4:37 am


exept the "your ammo" should i replace the float or bool with numbers or it is only that?

it show me 2 errors

  • variable (my arrow's name) is undefined
  • Fire is not a function or does not exist

btw thanks to both of you for your replies!

User avatar
Rachell Katherine
 
Posts: 3380
Joined: Wed Oct 11, 2006 5:21 pm


Return to V - Skyrim