Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Bread Part 2 (https://forums.graalonline.com/forums/showthread.php?t=13308)

Metal-Slug 09-29-2001 09:08 PM

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;
}
}


Metal-Slug 09-29-2001 09:42 PM

NPC Code:

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

?

Metal-Slug 09-29-2001 10:15 PM

umm, where will i add toweapons Bread;? and thank you lots for helping me with this

Poogle 09-29-2001 10:17 PM

Make your own ideas dont steal.

Metal-Slug 09-29-2001 10:24 PM

Quote:

Originally posted by Poogle
Make your own ideas dont steal.
what do you mean? im making an offline quest and im adding a food shop, back off, poogle

SSj_Link 09-30-2001 09:11 AM

I understand that
yay
lol

* bows before Kai *

-freak-


All times are GMT +2. The time now is 03:57 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.