Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   some NPC ideas (https://forums.graalonline.com/forums/showthread.php?t=20343)

WHIPENIE4 01-04-2002 01:05 PM

some NPC ideas
 
[screen_name says:]

i emailed Stefan a while back about the string with, where you can manipulate them easier, but i have one more thing to say about that, he should add it so you could get a value out or a string array without using the tokenize command

EXAMPLE:
NPC Code:

from this:
if (playersays(whatever)) {
tokenize #s(stringname);
setplayerprop #c, #t(indexhere);
}

to this:
if (playersays(whatever)) {
setplayerprop #c, #s(stringname[indexhere]);
}




that was just a example, it may not seem much better, but with some scripting im doing, it will be alot easier

second idea, Stefan should add more things images
NPC Code:

image[index].width
image[index].height
image[index].layer
changeimglayer index,whateverlayer;


Lionel-Jonson 01-04-2002 01:20 PM

coool

WHIPENIE4 01-05-2002 10:41 AM

[screen_name says:]

well, apparently there is already a message to get a value out of a string array

NPC Code:

#I(stringname,index)


i think thats it

WHIPENIE4 01-05-2002 10:55 AM

[screen_name says:]

o yeah, 2 commands i forgot

NPC Code:

pauseplayer;
unpauseplayer;



this would be helpful when i want to bring up a status menu


All times are GMT +2. The time now is 12:36 AM.

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