Difference between revisions of "Category talk:Scripting"
Jump to navigation
Jump to search
no edit summary
imported>Axle12693 |
imported>Candc4 |
||
Line 226: | Line 226: | ||
how do i upgrade? [[User:Axle12693|Axle12693]] 17:08, 4 January 2007 (EST) | how do i upgrade? [[User:Axle12693|Axle12693]] 17:08, 4 January 2007 (EST) | ||
==So confused== | |||
So I try to make my first script and I end up with this my only goal was to make this script kill you if endurance is less then 100 and it won't work I've try tons of stuff can someone tell me what I'm doing wrong, please and thank you--[[User:Candc4|Candc4]] 19:52, 27 September 2011 (EDT) | |||
Begin Unnamed | |||
OnPCEquip | |||
Short OnPCEquip | |||
if ( OnPCEquip == 1 ) | |||
set OnPCEquip to 0 | |||
endif | |||
; Checks for Scripted Item | |||
if ( player->GetEndurance < 100 ) | |||
Player->Sethealth 0 | |||
messageBox, "You Have been crushed by Scripted Item" | |||
; Kills player if endurance is less then 100 | |||
End Unnamed |