is there any kind of plotscript I can use to say, if a hero has or arms a specific weapon, then the hero's in-battle picture turns to one that has that particular weapon in it?
like one that goes:
If player has SHOTGUN then use ingame picture (insert pic here).
If anyone could help me with this, it's be much appreciated.
I do believe you use tags and each step scripts. You see, each weapon should get their own tags. Then, have an each step script that checks for tags that will change the heroes in-battle appearance with successful tag checks.
If the hero is wielding a shotgun, you would use Check Tags on an each step script to Set Hero Picture to whatever set of sprites has a shotgun in it.
If the hero is wielding a shotgun, you would use Check Tags on an each step script to Set Hero Picture to whatever set of sprites has a shotgun in it.
there are a ton of ways i have seen this done in the past...
but we have a new feature since then! on-close menu scripts! set something like this to run when you close the main menu:
but we have a new feature since then! on-close menu scripts! set something like this to run when you close the main menu:
Code:
script, changeherolook, begin
if (check equipment (hero, slot)) then (
set hero picture picture (who, inside battle)
)
end
script, changeherolook, begin
if (check equipment (hero, slot)) then (
set hero picture picture (who, inside battle)
)
end
thanks, Shakeyair and MasK.
I forgot all about the on-close menu scripts!
But anyway, now I can make hero GFX for when the characters have:
-Rifle Weapons
-Chainsaw Weapons
-Knife Weapons
-Pistol/Handgun Weapons
-Rocket/Explosive Type Weapons
-Dark Claw
-BFG9000
-Throwable explosives
----------------------
That's a lot for me to put to the table. Completely worth it.
I forgot all about the on-close menu scripts!
But anyway, now I can make hero GFX for when the characters have:
-Rifle Weapons
-Chainsaw Weapons
-Knife Weapons
-Pistol/Handgun Weapons
-Rocket/Explosive Type Weapons
-Dark Claw
-BFG9000
-Throwable explosives
----------------------
That's a lot for me to put to the table. Completely worth it.
Code:
plotscript, update equip graphics, begin
variable (who)
who := find hero (hero: flynn)
if (who <> -1) then ( # hero is in party
reset hero picture (who, inside battle)
# Knife
if (check equipment (who, slot:weapon) == item: Knife) then (
set hero picture (who, 4, inside battle)
)
# Shotgun
if (check equipment (who, slot:weapon) == item: Shotgun) then (
set hero picture (who, 7, inside battle)
)
# Rifle
if (check equipment (who, slot:weapon) == item: Rifle) then (
set hero picture (who, 0, inside battle)
)
)
end
plotscript, update equip graphics, begin
variable (who)
who := find hero (hero: flynn)
if (who <> -1) then ( # hero is in party
reset hero picture (who, inside battle)
# Knife
if (check equipment (who, slot:weapon) == item: Knife) then (
set hero picture (who, 4, inside battle)
)
# Shotgun
if (check equipment (who, slot:weapon) == item: Shotgun) then (
set hero picture (who, 7, inside battle)
)
# Rifle
if (check equipment (who, slot:weapon) == item: Rifle) then (
set hero picture (who, 0, inside battle)
)
)
end



