Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-21-2007, 05:46 PM
sam_is_me sam_is_me is offline
Registered User
Join Date: Sep 2004
Posts: 195
sam_is_me is on a distinguished road
Random Scripts

So, since I have to do this offline, its in gs1. I need to figure out how to put a random script, instead of numbers, into names. heres what I have so far:
NPC Code:

if(playerchats && strequals(#c,:choose)){
setcharprop #c,var(int(random(1,5)));
sleep1;
message ;
}



If that's wrong, sorry, I'm trying to remember what I have, and GraalEditor isnt working at the moment, but yeah, i have a working random number script tiggered by the player saying :choose..

But how do I assign numbers to NAMES, do I use flags, or what...
:]
thanks
__________________
Aim: xxspazmxx929


Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:25 AM.


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