oh thanks...i'll try it...

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction RandomLook(String name, int generoNumero) {
random = Random(5);
String demostrativo;
if (generoNumero==1)
{
demostrativo="ese";
}else if (generoNumero==2)
{
demostrativo="esa";
}
else if (generoNumero==3)
{
demostrativo="esos";
}
else
{
demostrativo="esas";
}
if (random==0) cPerxeo.Say("Confía en mi, tu no quieres mirar %s %s.",demostrativo, name);
else if (random==1) cPerxeo.Say("No hay nada importante en %s %s.",demostrativo, name);
else if (random==2) cPerxeo.Say("Mirar %s %s es una perdida de tiempo.", demostrativo, name);
else if (random==3) cPerxeo.Say("No hay nada importante en %s %s.",demostrativo, name);
else if (random==4) cPerxeo.Say("No tiene mucho sentido mirar %s %s",demostrativo, name);
else if (random==5) cPerxeo.Say( "Vale, ya miré %s %s, y ahora que?",demostrativo, name);
}
function unhandled_event(int what, int type) {
String locname;
String invname;
int generoNumero;
int theHotSpotID;
int theObjectID;
int theCharacterID;
locname = Game.GetLocationName(mouse.x,mouse.y);
String hotSpotProperty;
if (what==1) //HOTSPOT
{
Hotspot *theHotSpot = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
//generoNumero=hotspot[what].GetProperty("generoNumero");
//hotSpotProperty=Hotspot.GetAtScreenXY(mouse.x, mouse.y);
if (theHotSpot!=null)
{
theHotSpotID=theHotSpot.ID;
generoNumero=hotspot[theHotSpotID].GetProperty("generoNumero");
;
}else
{
Display("No hay un HOTSPOT");
generoNumero=0;
}
}
else if(what==2) //OBJECT
{
Object *theObject = Object.GetAtScreenXY(mouse.x, mouse.y);
if (theObject!=null)
{
theObjectID=theObject.ID;
generoNumero=object[theObjectID].GetProperty("generoNumero");
Display("GENERO NUMERO %d ", generoNumero);
}else
{
generoNumero=0;
}
}
else if(what==3) //CHARACTER
{
Character *theCharacter = Character.GetAtScreenXY(mouse.x, mouse.y);
if (theCharacter!=null)
{
theCharacterID=theCharacter.ID;
generoNumero=object[theCharacterID].GetProperty("generoNumero");
}else
{
Display("No hay un CHARACTER");
generoNumero=0;
}
}
Quote from: Crimson Wizard on Fri 31/03/2023 08:37:28In this particular case you don't need to use global variables at all, you may just doTHANKS!!Code: ags Display("It's a red key");
Quote from: Snarky on Wed 29/03/2023 15:01:57You don't actually need to write the topic title in all-caps. It looks like you're shouting.(Sorry, it's a strange habit I'll take in count from now on in order to avoid it!! Thanks)
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.040 seconds with 14 queries.