Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-07-2007, 03:48 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Examples in this thread have been horrendous.

Weapon:
PHP Code:
function onActionserverside() {
  switch(
params[0]) {
    case 
"dead":
      
setlevel2("levelname"xy);
    break;
  }
}
//#CLIENTSIDE
function onPlayerDies() 
  
triggerserver("gui"this.name"dead"); 

And for a single level:
PHP Code:
function onCreated() 
  
setshape(13232);

function 
onActionDied() 
  
setlevel2("levelname"xy);

//#CLIENTSIDE
function onPlayerDies() 
  
triggeraction(0.50.5"Died"); 
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #2  
Old 10-08-2007, 12:22 PM
Zanzel Zanzel is offline
<insert title here>
Zanzel's Avatar
Join Date: Dec 2006
Posts: 35
Zanzel is on a distinguished road
Quote:
Originally Posted by Tigairius View Post
Examples in this thread have been horrendous.

Weapon:
PHP Code:
function onActionserverside() {
  switch(
params[0]) {
    case 
"dead":
      
setlevel2("levelname"xy);
    break;
  }
}
//#CLIENTSIDE
function onPlayerDies() 
  
triggerserver("gui"this.name"dead"); 

And for a single level:
PHP Code:
function onCreated() 
  
setshape(13232);

function 
onActionDied() 
  
setlevel2("levelname"xy);

//#CLIENTSIDE
function onPlayerDies() 
  
triggeraction(0.50.5"Died"); 
You made a good point Tig, they were kind of that..
although you could letup on the less advanced scripting peoples
than yourself
__________________
  • N-Pulse / N-Pulse Reborn Scripter
  • Graal Kingdoms Player
  • N-Pulse Player
Reply With Quote
  #3  
Old 10-15-2007, 05:25 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Tigairius View Post
Examples in this thread have been horrendous.

Weapon:
PHP Code:
function onActionserverside() {
  switch(
params[0]) {
    case 
"dead":
      
setlevel2("levelname"xy);
    break;
  }
}
//#CLIENTSIDE
function onPlayerDies() 
  
triggerserver("gui"this.name"dead"); 

And for a single level:
PHP Code:
function onCreated() 
  
setshape(13232);

function 
onActionDied() 
  
setlevel2("levelname"xy);

//#CLIENTSIDE
function onPlayerDies() 
  
triggeraction(0.50.5"Died"); 
Isnt triggeraction always asking for atleast 4 arguments?
Reply With Quote
Reply


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 09:41 AM.


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