Thread: Bread Part 2
View Single Post
  #1  
Old 09-29-2001, 09:08 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Bread Part 2

ok, kamu, im trying it still, hehe, but im gonna try setting it as a string, so, i was wondering how i would et this up, but im not sure. here is what i think might do the trick;

NPC Code:

// NPC made by Urond the Paladin
if (created) {
setimg breadfoodicon.png;
setstring z,0;
}
if (playertouchsme) {
toweapons Bread;
setplayerprop #z,1;
}
if (weaponfired && strequals(#z,>1)) {
playerhearts+=2;
setplayerprop #z,0;
if (strequals(#z,<1)) {
destroy;
}
}

Reply With Quote