Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-19-2006, 03:35 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Selecting an image

How can I make so, say, upon clicking once on an image it sets players chat to "lol!"?


Here´s what I tried:


NPC Code:

new GuiShowImgCtrl("x_ShowImg_1"){
x = 10, y = 10;
image = "block.png";
}



and further down...

NPC Code:

function x_ShowImg_1.onSelected()
{
player.chat = "lol!";
}




I have no clue if you can check a ShowImgCtrl at all, and if not; what should I use?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #2  
Old 02-19-2006, 04:26 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
function ctrlname.onMouseDown(mcount, mx, my, modifier)
I think that's the right params, forgot =x
__________________
Liek omigosh.

Reply With Quote
  #3  
Old 02-19-2006, 08:18 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
You could also use GuiBitmapButtonCtrl if you want a bitmap as a button.
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 02:02 PM.


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