Hey!
I have a trigger, and then this to set summon names:
$summon1 = $world->trim ($world->GetTriggerInfo ($thename, 102));
$summon2 = $world->trim ($world->GetTriggerInfo ($thename, 104));
Now, if $summon1 = $summon2 I want $summon2 to be "$summon2 2"
Using:
if( $summon1 = $summon2 )
{
$world->setvariable("summon2", "$summon2 2");
}
The problem is, it doesn't matter if $summon1 is the same as $summon2 or not, it sets $summon2 to "$summon2 2" anyway.
And when I'm at it, anyone know if theres a "elseif" or "else" for perl?
Anyone know? :)
Thanks in advance!
I have a trigger, and then this to set summon names:
$summon1 = $world->trim ($world->GetTriggerInfo ($thename, 102));
$summon2 = $world->trim ($world->GetTriggerInfo ($thename, 104));
Now, if $summon1 = $summon2 I want $summon2 to be "$summon2 2"
Using:
if( $summon1 = $summon2 )
{
$world->setvariable("summon2", "$summon2 2");
}
The problem is, it doesn't matter if $summon1 is the same as $summon2 or not, it sets $summon2 to "$summon2 2" anyway.
And when I'm at it, anyone know if theres a "elseif" or "else" for perl?
Anyone know? :)
Thanks in advance!